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