(=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).
(generate-aescounter-seed)
Generate a seed for the AES counter RNG.
Generate a seed for the AES counter RNG.
(generate-cellularautomaton-seed)
Generate a seed for the cellular automaton RNG.
Generate a seed for the cellular automaton RNG.
(generate-java-seed)
Generate a seed for the default Java RNG.
Generate a seed for the default Java RNG.
(generate-mersennetwister-seed)
Generate a seed for the Mersenne-Twister RNG.
Generate a seed for the Mersenne-Twister RNG.
(generate-xorshift-seed)
Generate a seed for the XOR shift RNG.
Generate a seed for the XOR shift RNG.
(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.
(lrand-bytes n)
Return a random byte array.
Return a random byte array.
(lrand-gaussian)
A local random gaussian.
A local random gaussian.
(lrand-int n)
A local random int (actually a long) in [0,n).
A local random int (actually a long) in [0,n).
(lrand-nth coll)
Return a random element of a sequence.
Return a random element of a sequence.
(lshuffle coll)
Return a random permutation of coll (Adapted from clojure.core)
Return a random permutation of coll (Adapted from clojure.core)
(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
(make-cellularautomaton-rng)
(make-cellularautomaton-rng seed)
Make a Cellular Automaton RNG.
Make a Cellular Automaton RNG.
(make-java-rng)
(make-java-rng seed)
Make the default Java RNG.
Make the default Java RNG.
(make-mersennetwister-rng)
(make-mersennetwister-rng seed)
Make a Mersenne-Twister RNG.
Make a Mersenne-Twister RNG.
(make-xorshift-rng)
(make-xorshift-rng seed)
Make a XOR shift RNG (fast).
Make a XOR shift RNG (fast).
(seed-to-string seed)
Convert a byte-array seed into a string.
Convert a byte-array seed into a string.
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close