Liking cljdoc? Tell your friends :D

noon.utils.pseudo-random

A pseudo random utility namespace. When non deterministic functions are used to produce a score, it is valuable to be able to capture the seed of randomnes in order to reproduce at a later point.

A pseudo random utility namespace.
When non deterministic functions are used to produce a score,
it is valuable to be able to capture the seed of randomnes in order to reproduce at a later point.
raw docstring

randclj

(rand)
(rand max)

Generate a float between 0 and 1 based on random*

Generate a float between 0 and 1 based on random*
raw docstring

rand-betweenclj

(rand-between min max)

Generate a float between min and max based on random*

Generate a float between min and max based on random*
raw docstring

rand-intclj

(rand-int max)

rand-int-betweenclj

(rand-int-between)
(rand-int-between lo hi)

Uniform distribution from lo (inclusive) to hi (exclusive). Defaults to range of Java long.

Uniform distribution from lo (inclusive) to hi (exclusive).
Defaults to range of Java long.
raw docstring

rand-nthclj

(rand-nth xs)

random*clj


shuffleclj

(shuffle xs)

Shuffle coll based on random*

Shuffle coll based on random*
raw docstring

with-randcljmacro

(with-rand s & exprs)

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close