elm-community/elm-random-extra/1.0.0

NOTE: this package is not compatible with Elm 0.19.1

Random.Float

List of Float Generators

Generators

anyFloat : Generator Float

Generator that generates any float

positiveFloat : Generator Float

Generator that generates any positive float

negativeFloat : Generator Float

Generator that generates any negative float

floatGreaterThan : Float -> Generator Float

Generator that generates a float greater than a given float

floatLessThan : Float -> Generator Float

Generator that generates a float less than a given float

probability : Generator Float

Generator that generates a float between 0 and 1

negativeProbability : Generator Float

Generator that generates a float between -1 and 0

unitRange : Generator Float

Generator that generates a float between - 1 and 1

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

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

gaussian : Float -> Float -> Float -> Generator Float

Alias for normal.