Rev 4366 | Go to most recent revision | 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) |
||
3460 | bpr | 9 | :random( ) |
3263 | bpr | 10 | random(1,2,3,a,b,c) |
11 | een willekeurig <em>item</em> uit de lijst {1,2,3,a,b,c} |
||
3460 | bpr | 12 | :shuffle( ) |
3263 | bpr | 13 | shuffle(6) |
14 | een lijst van 6 integers 1,2,...,6 in een willekeurige volgorde. |
||
3460 | bpr | 15 | :shuffle( , ) |
3263 | bpr | 16 | shuffle(a,b,c,d,e) |
5903 | bpr | 17 | 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 | 18 | :randomitem( ) |
3263 | bpr | 19 | randomitem(\list) |
20 | een willekeurig <em>item</em> uit de door komma's gescheiden lijst \list. |
||
3460 | bpr | 21 | :randomrow( ) |
3263 | bpr | 22 | randomrow(\mat) |
23 | een willekeurige rij uit de matrix \mat. |