elm-community/random-extra/1.0.0

NOTE: this package is not compatible with Elm 0.19.1

Random.Float

Extra randomized functions on floats.

Arithmetic Generators

anyFloat : Generator Float

A generator that generates any float

positiveFloat : Generator Float

A generator that generates any positive float

negativeFloat : Generator Float

A generator that generates any negative float

floatGreaterThan : Float -> Generator Float

A generator that generates a float greater than a given float

floatLessThan : Float -> Generator Float

A generator that generates a float less than a given float

Gaussian Generators

normal : Float -> Float -> Float -> Generator Float

Create a generator of floats that is normally distributed with given minimum, maximum, and standard deviation.

standardNormal : Generator Float

A generator that follows a standard normal distribution (as opposed to a uniform distribution)