Subversion Repositories wimsdev

Rev

Rev 11292 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 11292 Rev 14279
Line 1... Line 1...
1
!! +var+ +random+ +string+
1
!! +var+ +random+ +string+
2
 
2
 
3
tit:shuffle
3
tit:shuffle
4
type:$type_var
4
type:$type_var
5
alias:randperm, randpermute
5
alias:randperm, randpermute
6
syntax:!shuffle [even|odd] ``n''
6
syntax:!shuffle [even|odd] ``n''\
7
!shuffle [even|odd] ``list''
7
!shuffle [even|odd] ``list''
-
 
8
 
8
mean:Randomly permutes a set of ``n'' elements. ``n'' must be a positive integer \
9
mean:Randomly permutes a set of ``n'' elements. ``n'' must be a positive integer\
9
  not greater than 1024 in the first usage, or is the number of items in ``list'' in the second\
10
  not greater than 1024 in the first usage, or is the number of items in ``list'' in the second\
10
  usage. <br/>\
11
  usage. <br/>\
11
  For the first usage, the command returns a comma-separated list ``i<sub>1</sub>, i<sub>2</sub>, ...,\
12
  For the first usage, the command returns a comma-separated list ``i<sub>1</sub>, i<sub>2</sub>, ...,\
12
  i<sub>n</sub>'', where the items ``i<sub>k</sub>'' are\
13
  i<sub>n</sub>'', where the items ``i<sub>k</sub>'' are\
13
  randomly ordered elements of the set ``{1,2,...,n}''. <br/>\
14
  randomly ordered elements of the set ``{1,2,...,n}''. <br/>\