Liking cljdoc? Tell your friends :D

provisdom.math.internal-splittable-random

Purely functional and splittable pseudo-random number generators.

Purely functional and splittable pseudo-random number generators.
raw docstring

IRandomcljprotocol

rand-doubleclj

(rand-double rng)

Returns a random double between 0.0 (inclusive) and 1.0 (exclusive) based on the given immutable RNG. Note: to maintain independence you should not call more than one function in the IRandom protocol with the same argument

Returns a random double between 0.0 (inclusive) and 1.0 (exclusive)
based on the given immutable RNG.
Note: to maintain independence you should not call more than one
function in the IRandom protocol with the same argument

rand-longclj

(rand-long rng)

Returns a random long based on the given immutable RNG. Note: to maintain independence you should not call more than one function in the IRandom protocol with the same argument

Returns a random long based on the given immutable RNG.
Note: to maintain independence you should not call more than one
function in the IRandom protocol with the same argument

splitclj

(split rng)

Returns two new RNGs [rng1 rng2], which should generate sufficiently independent random data. Note: to maintain independence you should not call more than one function in the IRandom protocol with the same argument

Returns two new RNGs [rng1 rng2], which should generate
sufficiently independent random data.
Note: to maintain independence you should not call more than one
function in the IRandom protocol with the same argument

split-nclj

(split-n rng n)

Returns a collection of n RNGs, which should generate sufficiently independent random data. Note: to maintain independence you should not call more than one function in the IRandom protocol with the same argument

Returns a collection of `n` RNGs, which should generate
sufficiently independent random data.
Note: to maintain independence you should not call more than one
function in the IRandom protocol with the same argument
source

make-java-util-splittable-randomclj

(make-java-util-splittable-random seed)
source

next-rngclj

Returns a random-number generator. Successive calls should return independent results.

Returns a random-number generator. Successive calls should return
independent results.
sourceraw docstring

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

× close