File: oefparm1

package info (click to toggle)
wims 1%3A4.13c~dfsg1-2
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 132,252 kB
  • ctags: 27,335
  • sloc: xml: 367,203; java: 119,440; ansic: 61,001; sh: 6,708; perl: 3,699; yacc: 3,099; lex: 1,786; cpp: 1,602; makefile: 1,452; lisp: 914; pascal: 223; python: 150; asm: 51; sql: 10
file content (23 lines) | stat: -rw-r--r-- 836 bytes parent folder | download | duplicates (11)
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)
:random( )
random(1,2,3,a,b,c)
a random item within {1,2,3,a,b,c}
: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.
:randomrow( )
randomrow(\mat)
a random row of the matrix \mat.