Subversion Repositories wimsdev

Rev

Rev 5903 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5903 Rev 17472
Line 4... Line 4...
4
random(-5..5)
4
random(-5..5)
5
a random number between -5 and 5
5
a random number between -5 and 5
6
:randint( .. )
6
:randint( .. )
7
randint(-5..5)
7
randint(-5..5)
8
a random integer between -5 and 5 (inclusive)
8
a random integer between -5 and 5 (inclusive)
9
:random( )
-
 
10
random(1,2,3,a,b,c)
-
 
11
a random item within {1,2,3,a,b,c}
-
 
12
:shuffle( )
9
:shuffle( )
13
shuffle(6)
10
shuffle(6)
14
a list of 6 integers 1,2,...,6, in a random order.
11
a list of 6 integers 1,2,...,6, in a random order.
15
:shuffle( , )
12
:shuffle( , )
16
shuffle(a,b,c,d,e)
13
shuffle(a,b,c,d,e)
17
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).
14
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).
18
:randomitem( )
15
:randomitem( )
19
randomitem(\list)
16
randomitem(\list)
20
a random item of (comma-separated) \list.
17
a random item of (comma-separated) \list.
-
 
18
:randitem( )
-
 
19
randitem(1,2,3,a,b,c)
-
 
20
a random item within {1,2,3,a,b,c}
21
:randomrow( )
21
:randomrow( )
22
randomrow(\mat)
22
randomrow(\mat)
23
a random row of the matrix \mat.
23
a random row of the matrix \mat.