rand multimethod

Methods

rand()
Get random number between 0 and RAND_MAX-1. Uses RANDOM(3).

Returns

Int
rand(something:Any, n:Int) Source: stdlib.ngs:8316
Pick n elements from something. Uniqueness of picked elements is not guaranteed.

Returns

Any
rand(n:Int) Source: stdlib.ngs:8321
Pick random number from 0 up to but not including n

Returns

Int
rand(a:Arr) Source: stdlib.ngs:8332
Pick one random element from array

Returns

Any
rand(a:Str) Source: stdlib.ngs:8336
Pick random character from a string

Returns

Str of length 1
rand(a:Str, n:Int) Source: stdlib.ngs:8338
Undocumented
rand(r:NumRange) Source: stdlib.ngs:8343
Pick one random element from a range

Returns

Any