Liking cljdoc? Tell your friends :D

genartlib.random


abs-gaussclj

(abs-gauss mean variance)

Returns the absolute value of a single sample from a Gaussian distribution with the given mean and variance

Returns the absolute value of a single sample from a Gaussian distribution
with the given mean and variance
sourceraw docstring

choiceclj

(choice & items)

Uniformly chooses one of the arguments

Uniformly chooses one of the arguments
sourceraw docstring

gaussclj

(gauss mean variance)

Samples a single value from a Gaussian distribution with the given mean and variance

Samples a single value from a Gaussian distribution with the given mean
and variance
sourceraw docstring

gauss-rangeclj

(gauss-range mean variance)

Returns a sequence of integers from zero to a value sampled from a Gaussian distribution with the given mean and variance

Returns a sequence of integers from zero to a value sampled from a Gaussian
distribution with the given mean and variance
sourceraw docstring

oddsclj

(odds chance)

Returns true with probability 'chance', where change is between 0 and 1.0

Returns true with probability 'chance', where change is between 0 and 1.0
sourceraw docstring

pareto-sampleclj

(pareto-sample scale shape)

Draws a single sample from a ParetoDistribution with the given scale and shape.

Draws a single sample from a ParetoDistribution with the given scale and
shape.
sourceraw docstring

pareto-samplerclj

(pareto-sampler scale shape)

Returns a function to draw values from a ParetoDistribution with the given scale and shape.

Returns a function to draw values from a ParetoDistribution with the given
scale and shape.
sourceraw docstring

random-point-in-circleclj

(random-point-in-circle x y radius)

Picks a random point in a circle with a given center and radius

Picks a random point in a circle with a given center and radius
sourceraw docstring

repeatable-shuffleclj

(repeatable-shuffle items)

A version of shuffle that uses Processing's random fn to ensure that the same random seed is used.

A version of shuffle that uses Processing's random fn to ensure that
the same random seed is used.
sourceraw docstring

simple-triangularclj

(simple-triangular b)

Like triangular, but assumes a = 0 and b = c

Like triangular, but assumes a = 0 and b = c
sourceraw docstring

triangularclj

(triangular lower mode upper)

Returns a single sample from a Triangular distribution

Returns a single sample from a Triangular distribution
sourceraw docstring

weighted-choiceclj

(weighted-choice & items-and-weights)

Given a sequence of alternating item and weight arguments, chooses one of the items with a probability equal to the weight. Each weight should be between 0.0 and 1.0, and all weights should sum to 1.0.

Given a sequence of alternating item and weight arguments, chooses one of the
items with a probability equal to the weight. Each weight should be
between 0.0 and 1.0, and all weights should sum to 1.0.
sourceraw docstring

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

× close