on 9567950 help sign in
elk/libraries/Random.elm
11 lines 429 B history raw
2module Random where
4-- Given a range from low to high and a signal of values, this produces
5-- a new signal that changes whenever the input signal changes. The new
6-- values are random number between 'low' and 'high' inclusive.
7range : Int -> Int -> Signal a -> Signal Int
9-- Produces a new signal that changes whenever the input signal changes.
10-- The new values are random number in [0..1).
11float : Signal a -> Signal Float