Subversion Repositories wimsdev

Rev

Rev 4562 | Rev 5921 | 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+
2
$lst_tit randint$lst_titend$type_var
4562 bpr 3
  $(lst_syntax)randint $emph n1$emphend ,$emph n2$emphend</tt>
32 reyssat 4
  $lst_mean Returns a random integer between $emph n1 $emphend and $emph
5766 bpr 5
  n2 $emphend (inclusive). <br/>
32 reyssat 6
  Substitution and evaluation are done on $emph n1 $emphend and $emph n2
5766 bpr 7
  $emphend before applying random. <br/>
32 reyssat 8
  If $emph n2 $emphend is missing, returns random integer between $(m_pm)1 and
5766 bpr 9
  $emph n1 $emphend (inclusive). <br/>
32 reyssat 10
  If both $emph n1 $emphend and $emph n2 $emphend are missing, returns 0.
5766 bpr 11
  <br/>
3773 reyssat 12
  You can also type <tt>!randint n1,n2 repeat i</tt> to repeatedly generate
13
  $emph i$emphend random integers.
32 reyssat 14