on abb4bc0 help sign in
elk/libraries/Random.elm
15 lines 503 B history raw
2module Random where
4import Native.Random as Native
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
10range = Native.range
12-- Produces a new signal that changes whenever the input signal changes.
13-- The new values are random numbers in [0..1).
14float : Signal a -> Signal Float
15float = Native.float