helm-0.7.0: A functionally reactive game engine.

Safe HaskellNone

FRP.Helm.Random

Synopsis

Documentation

range :: Int -> Int -> Signal a -> Signal IntSource

Given a range from low to high and a signal of values, this produces a new signal that changes whenever the input signal changes. The new values are random number between low and high inclusive.

float :: Signal a -> Signal FloatSource

Produces a new signal that changes whenever the input signal changes. The new values are random numbers in [0..1).

floatList :: Signal Int -> Signal [Float]Source

Produces a new signal of lists that changes whenever the input signal changes. The input signal specifies the length of the random list. Each value is a random number in [0..1).