File: oefparm1

package info (click to toggle)
wims 2%3A4.29a%2Bdfsg1-3
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 185,704 kB
  • sloc: xml: 366,687; javascript: 120,570; ansic: 62,341; java: 62,170; sh: 7,744; perl: 3,937; yacc: 3,217; cpp: 1,915; lex: 1,805; makefile: 1,084; lisp: 914; pascal: 601; python: 520; php: 318; asm: 7
file content (23 lines) | stat: -rw-r--r-- 840 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
:Randomization
:Function,Example,Effect
:random( .. )
random(-5..5)
a random number between -5 and 5
:randint( .. )
randint(-5..5)
a random integer between -5 and 5 (inclusive)
:shuffle( )
shuffle(6)
a list of 6 integers 1,2,...,6, in a random order.
:shuffle( , )
shuffle(a,b,c,d,e)
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).
:randomitem( )
randomitem(\list)
a random item of (comma-separated) \list.
:randitem( )
randitem(1,2,3,a,b,c)
a random item within {1,2,3,a,b,c}
:randomrow( )
randomrow(\mat)
a random row of the matrix \mat.