Rev 3263 | Rev 3460 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
:Randomization
:Function,Example,Effect
:random
random(-5..5)
a random number between -5 and 5
:randint
randint(-5..5)
a random integer between -5 and 5 (inclusive)
:random
random(1,2,3,a,b,c)
a random item within {1,2,3,a,b,c}
:shuffle
shuffle(6)
a list of 6 integers 1,2,...,6, in a random order.
:shuffle
shuffle(a,b,c,d,e)
the list of letters {a,b,c,d,e}, in a random order.
:randomitem
randomitem(\list)
a random item of (comma-separated) \list.
:randomrow
randomrow(\mat)
a random row of the matrix \mat.