Liking cljdoc? Tell your friends :D

provisdom.math.random


*rng-gen*clj

source

bind-seedcljmacro

(bind-seed seed & body)

Sets the seed for the RNGs to seed for the code in body. If used with a lazy sequence, ensure the seq is realized within the scope of the binding otherwise you will get inconsistent results.

Sets the seed for the RNGs to `seed` for the code in `body`. If used with a
lazy sequence, ensure the seq is realized within the scope of the binding
otherwise you will get inconsistent results.
sourceraw docstring

do-set-seed!cljmacro

(do-set-seed! seed & body)

Runs set-seed! with seed and then executes body.

Runs [[set-seed!]] with `seed` and then executes `body`.
sourceraw docstring

mdlclj

source

mersenne-rnd-lazyclj

(mersenne-rnd-lazy seed)

Returns rnd-lazy using seed.

Returns rnd-lazy using `seed`.
sourceraw docstring

mersenne-rngclj

(mersenne-rng seed)

Creates an Apache RNG using seed.

Creates an Apache RNG using `seed`.
sourceraw docstring

quasi-rnd-vector-lazyclj

(quasi-rnd-vector-lazy dimensions)

Better coverage but more predictable through a lazy sequence of vectors of size dimensions. Because of predictability, can be better for a single use simulation.

Better coverage but more predictable through a lazy sequence of vectors of
size `dimensions`. Because of predictability, can be better for a single use
simulation.
sourceraw docstring

quasi-rngclj

(quasi-rng dimensions)

Creates an Apache RNG with better coverage but more predictable through a lazy sequence of vectors of size dimensions. Because of predictability, can be better for a single use simulation.

Creates an Apache RNG with better coverage but more predictable through a
lazy sequence of vectors of size `dimensions`. Because of predictability, can
be better for a single use simulation.
sourceraw docstring

random-boolclj

(random-bool rnd)

Returns a random boolean.

Returns a random boolean.
sourceraw docstring

random-longclj

(random-long rnd)
(random-long rnd [lower upper])

Returns a random long within the given interval (or any long by default).

Returns a random long within the given interval (or any long by default).
sourceraw docstring

random-normalclj

(random-normal rnd)

Returns a value drawn from a standard Normal distribution.

Returns a value drawn from a standard Normal distribution.
sourceraw docstring

rndclj

(rnd rng)
(rnd rng [lower upper])

Returns a random finite within the given interval (or [0, 1] by default).

Returns a random finite within the given interval (or [0, 1] by default).
sourceraw docstring

rnd!clj

(rnd!)
(rnd! [lower upper])

Returns a random finite within the given interval (or [0, 1] by default).

Returns a random finite within the given interval (or [0, 1] by default).
sourceraw docstring

rnd-boolclj

(rnd-bool rng)

Returns a random boolean.

Returns a random boolean.
sourceraw docstring

rnd-bool!clj

(rnd-bool!)

Returns a random boolean.

Returns a random boolean.
sourceraw docstring

rnd-lazyclj

(rnd-lazy rng)

Returns a lazy seq of random rnds.

Returns a lazy seq of random rnds.
sourceraw docstring

rnd-lazy!clj

(rnd-lazy!)

Returns a lazy seq of random doubles.

Returns a lazy seq of random doubles.
sourceraw docstring

rnd-longclj

(rnd-long rng)
(rnd-long rng [lower upper])

Returns a random long within the given interval (or any long by default).

Returns a random long within the given interval (or any long by default).
sourceraw docstring

rnd-long!clj

(rnd-long!)
(rnd-long! [lower upper])

Returns a random long within the given interval (or any long by default).

Returns a random long within the given interval (or any long by default).
sourceraw docstring

rnd-long-lazyclj

(rnd-long-lazy rng)

Returns a lazy seq of random longs.

Returns a lazy seq of random longs.
sourceraw docstring

rnd-long-lazy!clj

(rnd-long-lazy!)

Returns a lazy seq of random longs.

Returns a lazy seq of random longs.
sourceraw docstring

rnd-normalclj

(rnd-normal rng)

Returns a value randomly drawn from a standard Normal distribution.

Returns a value randomly drawn from a standard Normal distribution.
sourceraw docstring

rnd-normal!clj

(rnd-normal!)

Returns a value randomly drawn from a standard Normal distribution.

Returns a value randomly drawn from a standard Normal distribution.
sourceraw docstring

rngclj

(rng seed)

Returns a new RNG.

Returns a new RNG.
sourceraw docstring

rng!clj

(rng!)

Returns the bound RNG.

Returns the bound RNG.
sourceraw docstring

rng$clj

(rng$)

Makes a new RNG from the current clock time.

Makes a new RNG from the current clock time.
sourceraw docstring

rng-genclj

(rng-gen rng)

Returns a function that will generate random numbers from the bound or other static RNG.

Returns a function that will generate random numbers from the bound or other
static RNG.
sourceraw docstring

rng-lazyclj

(rng-lazy rng)

Returns a lazy sequence of RNG where each iteration is split from the previous.

Returns a lazy sequence of RNG where each iteration is split from the
previous.
sourceraw docstring

rng-lazy!clj

(rng-lazy!)

Returns a lazy sequence of RNG where each iteration is split from the previous.

Returns a lazy sequence of RNG where each iteration is split from the
previous.
sourceraw docstring

secure-rnd-lazyclj

(secure-rnd-lazy seed)

A less predictable but slower rnd-lazy than Mersenne Twister.

A less predictable but slower rnd-lazy than Mersenne Twister.
sourceraw docstring

secure-rngclj

(secure-rng seed)

Creates an Apache RNG that is less predictable but slower RNG than Mersenne Twister.

Creates an Apache RNG that is less predictable but slower RNG than Mersenne
Twister.
sourceraw docstring

seed$clj

(seed$)

Returns a new seed from the current clock time.

Returns a new seed from the current clock time.
sourceraw docstring

set-seed!clj

(set-seed! seed)

Sets the RNG generator to seed.

Sets the RNG generator to `seed`.
sourceraw docstring

set-seed!$clj

(set-seed!$)

Sets the RNG generator to the current clock time.

Sets the RNG generator to the current clock time.
sourceraw docstring

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

× close