rand multimethod
Methods
- rand()
- Get random number between 0 and RAND_MAX-1. Uses RANDOM(3).
- rand(something:Any, n:Int) Source: stdlib.ngs:5909
- Pick n elements from something. Uniqueness of picked elements is not guaranteed.
- rand(n:Int) Source: stdlib.ngs:5914
- Pick random number from 0 up to but not including n
- rand(a:Arr) Source: stdlib.ngs:5925
- Pick one random element from array
- rand(a:Str) Source: stdlib.ngs:5929
- Pick random character from a string
- rand(a:Str, n:Int) Source: stdlib.ngs:5931
- rand(r:NumRange) Source: stdlib.ngs:5936
- Pick one random element from a range