clojure.core.matrix.random

Namespace for random number generation functions working with core.matrix
arrays. 

Intended for use in random sampling, simulation etc.

randoms

(randoms)(randoms seed)
Returns a lazy sequence of random samples from a uniform distribution on [0,1). 

May be given a optional seed that is either an integer value or a java.util.Random instance

sample-binomial

(sample-binomial size p)(sample-binomial size p n)(sample-binomial size p n seed)
Returns an array of samples from a binomial distribution with probability p 
and n trials for each sample. If n is omitted, a single trial is performed.

Size may be either a number of samples or a shape vector.

sample-normal

(sample-normal size)(sample-normal size seed)
Returns an array of random samples from a standard normal distribution.

Size may be either a number of samples or a shape vector.

sample-rand-int

(sample-rand-int size n)(sample-rand-int size n seed)
Returns an array of random integers in the range [0..n), equivalent to
Clojure's rand-int function.

Size may be either a number of samples or a shape vector.

sample-uniform

(sample-uniform size)(sample-uniform size seed)
Returns an array of random samples from a uniform distribution on [0,1).

Size may be either a number of samples or a shape vector.