Page 1 of 1

Random numbers

Posted: Sat Mar 03, 2007 9:56 am
by Commander McLane
Are there alternative methods to create random numbers in a script?

I want to pick a random system in a galaxy. As there are 256 systems in each galaxy a d100_number won't do.

Is there a d256_number as well? Or which other methods could be used to pick one system out of all available systems?

Posted: Sat Mar 03, 2007 12:09 pm
by JensAyton
Doesn’t look like it.

I’ve added d256_number and pseudoFixedD256_number for the next release, in the event that there is a next release.

Posted: Mon Mar 05, 2007 12:48 pm
by Commander McLane
Thanks, Ahruman.

For now I've found a sort of work-halfway-around by adding two d100_numbers. That gives a random choice of 200 planets, even if the chances are not equal.