|
Lysit Newbie
Joined: 13 Jul 2005 Posts: 7
|
Posted: 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.
|
|
|
|
Aarlot Adept
Joined: 30 Dec 2003 Posts: 226
|
Posted: Wed Jul 13, 2005 9:37 pm |
%random(5,10)
|
|
_________________ Everyone is entitled to their beliefs - until they die. Then only the truth matters. |
|
|
|
Lysit Newbie
Joined: 13 Jul 2005 Posts: 7
|
Posted: 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.
|
|
|
|
jolopez Novice
Joined: 31 May 2003 Posts: 49
|
Posted: 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) |
|
|
|
|
|