Liking cljdoc? Tell your friends :D

clj-random.core


*RNG*clj

source

*seed-generator*clj

source

*seed-length*clj

source

=byte-arrayclj

(=byte-array ba1 ba2)

Test if the contents of 2 byte arrays are identical (for comparing seeds).

Test if the contents of 2 byte arrays are identical (for comparing seeds).
sourceraw docstring

generate-aescounter-seedclj

(generate-aescounter-seed)

Generate a seed for the AES counter RNG.

Generate a seed for the AES counter RNG.
sourceraw docstring

generate-cellularautomaton-seedclj

(generate-cellularautomaton-seed)

Generate a seed for the cellular automaton RNG.

Generate a seed for the cellular automaton RNG.
sourceraw docstring

generate-java-seedclj

(generate-java-seed)

Generate a seed for the default Java RNG.

Generate a seed for the default Java RNG.
sourceraw docstring

generate-mersennetwister-seedclj

(generate-mersennetwister-seed)

Generate a seed for the Mersenne-Twister RNG.

Generate a seed for the Mersenne-Twister RNG.
sourceraw docstring

generate-xorshift-seedclj

(generate-xorshift-seed)

Generate a seed for the XOR shift RNG.

Generate a seed for the XOR shift RNG.
sourceraw docstring

lrandclj

(lrand)
(lrand n)
(lrand min max)

A local random double in [0,n), where n is 1 if no arguments are specified.

A local random double in [0,n), where n is 1 if no arguments are specified.
sourceraw docstring

lrand-bytesclj

(lrand-bytes n)

Return a random byte array.

Return a random byte array.
sourceraw docstring

lrand-gaussianclj

(lrand-gaussian)

A local random gaussian.

A local random gaussian.
sourceraw docstring

lrand-intclj

(lrand-int n)

A local random int (actually a long) in [0,n).

A local random int (actually a long) in [0,n).
sourceraw docstring

lrand-longclj

(lrand-long)

A local random long.

A local random long.
sourceraw docstring

lrand-nthclj

(lrand-nth coll)

Return a random element of a sequence.

Return a random element of a sequence.
sourceraw docstring

lshuffleclj

(lshuffle coll)

Return a random permutation of coll (Adapted from clojure.core)

Return a random permutation of coll (Adapted from clojure.core)
sourceraw docstring

make-aescounter-rngclj

(make-aescounter-rng)
(make-aescounter-rng seed)

Make an AES block cipher counter into a RNG. Nonlinear

Make an AES block cipher counter into a RNG. Nonlinear
sourceraw docstring

make-cellularautomaton-rngclj

(make-cellularautomaton-rng)
(make-cellularautomaton-rng seed)

Make a Cellular Automaton RNG.

Make a Cellular Automaton RNG.
sourceraw docstring

make-java-rngclj

(make-java-rng)
(make-java-rng seed)

Make the default Java RNG.

Make the default Java RNG.
sourceraw docstring

make-mersennetwister-rngclj

(make-mersennetwister-rng)
(make-mersennetwister-rng seed)

Make a Mersenne-Twister RNG.

Make a Mersenne-Twister RNG.
sourceraw docstring

make-xorshift-rngclj

(make-xorshift-rng)
(make-xorshift-rng seed)

Make a XOR shift RNG (fast).

Make a XOR shift RNG (fast).
sourceraw docstring

seed-to-stringclj

(seed-to-string seed)

Convert a byte-array seed into a string.

Convert a byte-array seed into a string.
sourceraw docstring

with-rngcljmacro

(with-rng my-rng & body)

Use a specific RNG with all lrand calls within the body.

Use a specific RNG with all lrand calls within the body.
sourceraw docstring

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

× close