Subversion Repositories wimsdev

Rev

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

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