|
jtviper456 Novice
Joined: 17 Jan 2003 Posts: 37
|
Posted: Sat Jul 22, 2006 6:09 am
Random numbers |
I'm looking for a way to go through a sequence of numbers 1-9 in random order...
I've come up with:
#loop 1,9 {enter %{i} {#loop 1,9 {enter %{i}}} {#loop 1,9 {enter %i}}}
but this doesn't seem to work out for me :(
I need the command to be 'enter #1 #2 #3'...I need it to go through all of the possible combinations though. Help! |
|
|
|
Dumas Enchanter
Joined: 11 Feb 2003 Posts: 511 Location: USA
|
Posted: Sat Jul 22, 2006 1:36 pm |
Little more about what you are trying to do. You want to go through each and every number from 1 to 9 randomly, but still want to hit each number? Or do you just want 9 random numbers from 1 to 9 and use those even with repeats?
In either case %rand may be a better option to get the randomness. |
|
|
|
|
|