Random Int question
Hey guys, I just had a quick question with something, is there someway that I can do this? quest::ChooseRandom(<int>-<int>), so like 0-100 or something, or does it already support it maybe?
|
Perl has a built-in random number generator. http://perlmeme.org/howtos/perlfunc/rand_function.html
|
Thank you, this was very helpful =).
|
If you have the right plugin, you can also do:
my $randomnum = plugin::RandomRange(5, 15); It makes it a bit easier to get a random number within a range that doesn't start at 0. |
Ok, thanks, thats also nice to know
|
All times are GMT -4. The time now is 06:17 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.