Subversion Repositories wimsdev

Rev

Rev 3282 | Rev 4366 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3282 Rev 3460
Line 1... Line 1...
1
:Randomization
1
:Randomization
2
:Function,Example,Effect
2
:Function,Example,Effect
3
:random
3
:random( .. )
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
9
:random( )
10
random(1,2,3,a,b,c)
10
random(1,2,3,a,b,c)
11
a random item within {1,2,3,a,b,c}
11
a random item within {1,2,3,a,b,c}
12
:shuffle
12
:shuffle( )
13
shuffle(6)
13
shuffle(6)
14
a list of 6 integers 1,2,...,6, in a random order.
14
a list of 6 integers 1,2,...,6, in a random order.
15
:shuffle
15
:shuffle( , )
16
shuffle(a,b,c,d,e)
16
shuffle(a,b,c,d,e)
17
the list of letters {a,b,c,d,e}, in a random order.
17
the list of letters {a,b,c,d,e}, in a random order.
18
:randomitem
18
:randomitem( )
19
randomitem(\list)
19
randomitem(\list)
20
a random item of (comma-separated) \list.
20
a random item of (comma-separated) \list.
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.