Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
jtviper456
Novice


Joined: 17 Jan 2003
Posts: 37

PostPosted: 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!
Reply with quote
Dumas
Enchanter


Joined: 11 Feb 2003
Posts: 511
Location: USA

PostPosted: 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.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net