Module

Random.PseudoRandom

Package
purescript-pseudo-random
Repository
opyapeus/purescript-pseudo-random

#RandomPair Source

type RandomPair a = { newSeed :: Seed, newVal :: a }

#RandomR Source

class (Random a) <= RandomR a  where

Members

Instances

#randoms Source

randoms :: forall a. Random a => Int -> Seed -> Array a

#randomRs Source

randomRs :: forall a. RandomR a => a -> a -> Int -> Seed -> Array a

#randomEff Source

randomEff :: forall a. Random a => Effect a

#randomREff Source

randomREff :: forall a. RandomR a => a -> a -> Effect a

Re-exports from Random.LCG

#Seed Source

newtype Seed

A seed for the linear congruential generator. We omit a Semiring instance because there is no zero value, as 0 is not an acceptable seed for the generator.

Instances

#unSeed Source

#randomSeed Source

randomSeed :: Effect Seed

Create a random seed

#mkSeed Source