May 2018
Beginner
252 pages
6h 19m
English
The random function can work on any value of a simple type to return a random value of that type, for example:
random 100 ;== 71random 2.71 ;== 2.027808184808962random "house" ;== "hsuoe"random 2018-02-13 ;== 23-Mar-1968
This command also has a few refinements:
random/only ["one" "two" "three" "four"] ;== "three"
random/seed now/time loop 9 [ r: random 10 prin r prin space ] ;1st run: == 4 5 3 5 7 9 3 10 10 ;2nd run: == 10 8 10 2 3 1 4 2 1