SeedRnd MilliSecs()This ensures that the random number generator does not start in the same state each time your program is run, which would cause it to produce the same sequence of random numbers.
Returns: A random float in the range 0 (inclusive) to 1 (exclusive)
Returns: A random double in the range 0 (inclusive) to 1 (exclusive)
Returns: A random double in the range min (inclusive) to max (exclusive)
The optional parameters allow you to use Rnd in 3 ways:
Format | Result |
---|---|
Rnd() | random double in the range 0 (inclusive) to 1 (exclusive) |
Rnd(x) | random double in the range 0 (inclusive) to n (exclusive) |
Rnd(x,y) | random double in the range x (inclusive) to y (exclusive) |
Returns: A random integer in the range min (inclusive) to max (inclusive)
The optional parameter allows you to use Rand in 2 ways:
Format | Result |
---|---|
Rand(x) | random integer in the range 0 to x (inclusive) |
Rand(x,y) | random integer in the range x to y (inclusive) |
Returns: The current random number generator seed
Use in conjunction with SeedRnd, RndSeed allows you to reproduce sequences of random
numbers.
Module | brl.random |
Version | 1.00 |
Author | Mark Sibly |
License | Blitz Shared Source Code |
Copyright | Blitz Research Ltd |
Modserver | BRL |