>>-RANDOM(--+------------------------------------+--)----------><
+--max-------------------------------+
+-+--------+-,-+-------+--+--------+-+
+--min---+ +--max--+ +--,seed-+
0 and 999, respectively. To start a repeatable sequence of results, use a specific seed as the third argument. This seed must be a positive whole number from 0 to 999999999.
Example 7.62. Builtin function RANDOM
RANDOM() -> 305 RANDOM(5,8) -> 7 RANDOM(2) -> 0 /* 0 to 2 */ RANDOM(, ,1983) -> 123 /* reproducible */ RANDOM(-5, 5) -> -3
Example 7.63. Builtin function RANDOM with seed
sequence = RANDOM(1,6,12345) /* any number would */
/* do for a seed */
do 39
sequence = sequence RANDOM(1,6)
end
say sequence