RND( [
channel , ]
range )
- Returns a random integer from 0 to
range-1
-
range: Integer. Number of values to choose from.
-
channel: Integer 0-7 (Optional, defaults to 0). Randomizer channel to use.
(SB has 8 independent randomizer "channels". Usually you'll just use the default channel, 0.)
RNDF( [
channel ]
)
- Returns a random number from 0 to 1
-
channel: Integer 0-7 (Optional, defaults to 0). Randomizer channel to use.
RANDOMIZE channel [ ,
seed ]
- Sets the randomizer seed.
-
channel: Integer 0-7. Randomizer channel to re-seed.
-
seed: Integer (Optional, defaults to 0). The seed to use. (If 0, a random seed will be chosen).
Examples:
Print a random number from 1 to 6:
PRINT RND(6)+1
This should be
0.20871972:
RANDOMIZE 0,398
PRINT RNDF()