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:6292
Pick n elements from something. Uniqueness of picked elements is not guaranteed.

Returns

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

Returns

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

Returns

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

Returns

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

Returns

Any