|
| Control.Monad.Random.Class | | Portability | non-portable (multi-parameter type classes, undecidable instances) | | Stability | experimental |
|
|
|
| Description |
A type class for random number generation monads. See
http://www.haskell.org/haskellwiki/NewMonads/MonadRandom for the original
version of this code.
Instances of this type class include Control.Monad.Random.Rand and
monads created using Control.Monad.Random.RandT.
|
|
| Synopsis |
|
|
|
| Documentation |
|
|
| An interface to random number generation monads.
| | | Methods | | | Return a randomly-selected value of type a. See
random for details.
| | | | Return an infinite stream of random values of type a. See
randoms for details.
| | | | Return a randomly-selected value of type a in the range
(lo,hi). See randomR for details.
| | | | Return an infinite stream of randomly-selected value of type a
in the range (lo,hi). See randomRs for details.
|
| | Instances | |
|
|
|
| Return a randomly-selected value of type a. See
random for details.
|
|
|
| Return a randomly-selected value of type a in the range
(lo,hi). See randomR for details.
|
|
|
| Return an infinite stream of random values of type a. See
randoms for details.
|
|
|
| Return an infinite stream of randomly-selected value of type a
in the range (lo,hi). See randomRs for details.
|
|
| Produced by Haddock version 2.1.0 |