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
Lysit
Newbie


Joined: 13 Jul 2005
Posts: 7

PostPosted: Wed Jul 13, 2005 9:16 pm   

%random lower limit
 
By default it is 0, is it possible to raise this limit to generate random number between, say, 5-10 rather than 0-10.
Reply with quote
Aarlot
Adept


Joined: 30 Dec 2003
Posts: 226

PostPosted: Wed Jul 13, 2005 9:37 pm   
 
%random(5,10)
_________________
Everyone is entitled to their beliefs - until they die. Then only the truth matters.
Reply with quote
Lysit
Newbie


Joined: 13 Jul 2005
Posts: 7

PostPosted: Wed Jul 13, 2005 9:46 pm   
 
Ah yes, rereading the helpfile I see what it means now, I thought it meant %random(5,10) would mean a range of 0-10 with the number 5 obmitted with 0 default, not just 0 default min when first is not present.
Reply with quote
jolopez
Novice


Joined: 31 May 2003
Posts: 49

PostPosted: Sun Jul 17, 2005 9:06 pm   
 
yo can try a random from 0 to 5 and add five by default
#var kk %random(5)
#add kk 5
more or less like this (not sure about the syntax)
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