Liking cljdoc? Tell your friends :D

clojure.test.check.random

Purely functional and splittable pseudo-random number generators.

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

IRandomclj/s≠protocol

rand-longclj/s≠

(rand-long rng)
clj

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
cljs

Returns a random goog.math.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 goog.math.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

split-nclj/s

(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

rand-doubleclj/s

(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

splitclj/s

(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
source (clj)source (cljs)

JavaUtilSplittableRandomcljs

source

make-java-util-splittable-randomclj/s

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

make-randomclj/s≠

(make-random)
(make-random seed)
clj

Given an optional Long seed, returns an object that satisfies the IRandom protocol.

Given an optional Long seed, returns an object that satisfies the
IRandom protocol.
cljs

Given an optional integer (or goog.math.Long) seed, returns an implementation of the IRandom protocol.

Given an optional integer (or goog.math.Long) seed, returns an
implementation of the IRandom protocol.
source (clj)source (cljs)raw docstring

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

× close