Rev 3263 | Rev 3460 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
3263 | bpr | 1 | :Randomization |
2 | :Function,Example,Effect |
||
3 | :random |
||
4 | random(-5..5) |
||
5 | a random number between -5 and 5 |
||
6 | :randint |
||
7 | randint(-5..5) |
||
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 |
||
13 | shuffle(6) |
||
14 | a list of 6 integers 1,2,...,6, in a random order. |
||
15 | :shuffle |
||
16 | shuffle(a,b,c,d,e) |
||
17 | the list of letters {a,b,c,d,e}, in a random order. |
||
18 | :randomitem |
||
19 | randomitem(\list) |
||
20 | a random item of (comma-separated) \list. |
||
21 | :randomrow |
||
22 | randomrow(\mat) |
||
23 | a random row of the matrix \mat. |