What I want to do is make a 3 digit number, randomly generated and each number can only range from 0 to 3
ex: '301' '123' '000' '333' ...
They way I was trying to do it was use the random funcion (random 3) then append all three of the digits however whenever I get it to work it makes a list not a string (ex: (0 1 2) or (0 0 0))
The code I used to get those results was:
- Code: Select all
(concatenate 'list (list (random 3)) (list (random 3))(list (random 3)))
=> (1 0 3)
Yes I know that 'list makes it a list but everything else I tried did not work.
Thank You for your help,
all comments are welcome!