synthesizer-core-0.8.4: Audio signal processing coded in Haskell: Low level part
Safe HaskellSafe-Inferred
LanguageHaskell2010

Synthesizer.RandomKnuth

Description

Very simple random number generator which should be fast and should suffice for generating just noise. http://www.softpanorama.org/Algorithms/random_generators.shtml

Documentation

data T Source #

Instances

Instances details
Show T Source # 
Instance details

Defined in Synthesizer.RandomKnuth

Methods

showsPrec :: Int -> T -> ShowS #

show :: T -> String #

showList :: [T] -> ShowS #

RandomGen T Source # 
Instance details

Defined in Synthesizer.RandomKnuth

Methods

next :: T -> (Int, T) #

genWord8 :: T -> (Word8, T) #

genWord16 :: T -> (Word16, T) #

genWord32 :: T -> (Word32, T) #

genWord64 :: T -> (Word64, T) #

genWord32R :: Word32 -> T -> (Word32, T) #

genWord64R :: Word64 -> T -> (Word64, T) #

genShortByteString :: Int -> T -> (ShortByteString, T) #

genRange :: T -> (Int, Int) #

split :: T -> (T, T) #

cons :: Int -> T Source #