Subversion Repositories wimsdev

Rev

Rev 11210 | Rev 11224 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
32 reyssat 1
!! +var+ +random+
11210 bpr 2
tit:randint
3
type:$type_var
4
syntax:!randint `n1' ,`n2'
5
mean:Returns a random integer between `n1' and `n2' (inclusive). <br/>\
6
  Substitution and evaluation are done on `n1' and `n2' before applying random. <br/>\
7
  If `n2' is missing, returns random integer between $(m_pm)1 and `n1' (inclusive). <br/>\
8
  If both `n1' and `n2' are missing, returns 0.\
9
  <br/>\
11212 bpr 10
  You can also type <span class="tt">!randint `n1,n2' repeat `i'</span> to repeatedly generate\
11210 bpr 11
  `i' random integers.