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*
sourceraw 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*
sourceraw docstring

rand-intclj

(rand-int max)
source

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.
sourceraw docstring

rand-nthclj

(rand-nth xs)
source

random*clj

source

shuffleclj

(shuffle xs)

Shuffle coll based on random*

Shuffle coll based on random*
sourceraw docstring

with-randcljmacro

(with-rand s & exprs)
source

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

× close