|
System.Random | Portability | portable | Stability | provisional | Maintainer | libraries@haskell.org |
|
|
|
|
|
Description |
Random numbers.
|
|
|
|
class RandomGen g where |
| Methods | genRange :: g -> (Int, Int) | | split :: g -> (g, g) | | next :: g -> (Int, g) |
| | Instances | |
|
|
data StdGen |
|
|
mkStdGen :: Int -> StdGen |
|
class Random a where |
| Methods | randomRIO :: (a, a) -> IO a | | randomIO :: IO a | | randomRs :: (RandomGen g) => (a, a) -> g -> [a] | | randoms :: (RandomGen g) => g -> [a] | | randomR :: (RandomGen g) => (a, a) -> g -> (a, g) | | random :: (RandomGen g) => g -> (a, g) |
| | Instances | |
|
|
getStdRandom :: (StdGen -> (a, StdGen)) -> IO a |
|
getStdGen :: IO StdGen |
|
setStdGen :: StdGen -> IO () |
|
newStdGen :: IO StdGen |
|
Produced by Haddock version 0.3 |