: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)
: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. <span class="wims_warning">$wims_name_warning</span>, if the first word of the list is <span class="tt wims_code_words">even</span> or <span class="tt wims_code_words">odd</span>, the permutation will be respectively even or odd (so these words can not be the first word of the list to permute).
:randomitem( )
randomitem(\list)
a random item of (comma-separated) \list.
:randitem( )
randitem(1,2,3,a,b,c)
a random item within {1,2,3,a,b,c}
:randomrow( )
randomrow(\mat)
a random row of the matrix \mat.
