Pointless API Docs

pointless/prelude/random.ptls (source)


randFloat(n) link
Get random float in 0 <= result <= n

randRange(a, b) link
Get random entry from range(a, b)

randChoice(elems) link
Get random elem from collection

shuffle(iter) link
Shuffle an iterable of values
https://www.rosettacode.org/wiki/Knuth_shuffle