Rev 5903 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
3263 | bpr | 1 | :Randomness |
2 | :Functie,Example,Effect |
||
3460 | bpr | 3 | :random( .. ) |
3263 | bpr | 4 | random(-5..5) |
5 | een willekeurige getal tussen -5 en 5 |
||
3460 | bpr | 6 | :randint( .. ) |
3263 | bpr | 7 | randint(-5..5) |
8 | een willekeurige integer tussen -5 en 5 (inclusief) |
||
17472 | lemaire | 9 | |
3460 | bpr | 10 | :shuffle( ) |
3263 | bpr | 11 | shuffle(6) |
12 | een lijst van 6 integers 1,2,...,6 in een willekeurige volgorde. |
||
3460 | bpr | 13 | :shuffle( , ) |
3263 | bpr | 14 | shuffle(a,b,c,d,e) |
5903 | bpr | 15 | een lijst van de letters {a,b,c,d,e}, in een willekeurige volgorde. <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). |
3460 | bpr | 16 | :randomitem( ) |
3263 | bpr | 17 | randomitem(\list) |
18 | een willekeurig <em>item</em> uit de door komma's gescheiden lijst \list. |
||
17472 | lemaire | 19 | |
20 | :randitem( ) |
||
21 | randitem(1,2,3,a,b,c) |
||
22 | een willekeurig <em>item</em> uit de lijst {1,2,3,a,b,c} |
||
23 | |||
3460 | bpr | 24 | :randomrow( ) |
3263 | bpr | 25 | randomrow(\mat) |
26 | een willekeurige rij uit de matrix \mat. |