irand

Command: irand


Synopsis
rangen n irand -> int
Description
irand uses the supplied random number generator to generate
a random number between 0 and n-1.
File
lib/sli/librandom.sli
Examples

 
SLI ] rngdict /knuthran get 1234567 CreateRNG /rng Set
SLI ] [ 10 ] { pop rng 100 irand } Table ==
[16 87 84 66 81 27 64 57 42 59]

SeeAlso