So i've been toying around with string.len and I had the idea to make a string look 'Spooky' by having it randomly generate letters, numbers, and symbols from a table. Problem is I'm not quite sure on how to select random variables from the table with a certain number limit. (For example, if I used string.len("Bob") i'd want it to randomly pick 3 variables from the table.)
--[[
The list is very long & some of the symbols weren't showing up so I decided not to include it, but it's basically every letter, number, and symbol on the keyboard.
]]
while true do
wait(0.01)
local number = string.len(""..game.Players.LocalPlayer.Name)
print(list[math.random(1, #list)]
end
Any help on how I can complete this task?
Edit:
I don't really know how to be specific, but here's my wanted and unwanted list: (Being the string.len("Example") turning into what I want & don't want.)
(My example list for these examples)
local list = {"1","2","3","4","5","6","7","8,"9","0"}
Wanted:
string.len("Bob") {Turns into} "903"
string.len("HiIamsusan!") {Turns into} "6172843509"
Unwanted:
string.len("Mike") {Turning into} "6" -then- "4" -then- "1" -then- "9"
Basically, I want it to be crammed together, the longer the string is in the string.len, the more items in the table it generates crammed together.

4 comments
Three different values? With or without replacement? Be specific! Give examples of what's acceptable and what's not
Edited.
To be clear, for input "Cat" is "121" a valid output? What about "111" and "112"?
print(("example string"):gsub(".", function(a) return math.random(3) == 1 and math.random(0, 9) or a end))`