HORIZON HASKELLDocslts/ghc-10.0.x8174fa42026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8174fa4 · 2026-10-11

Moduletf-random-0.5Haskell98

System.Random.TF.Init

  • 5 values
  • Packagetf-random-0.5
  • Exports5
  • LanguageHaskell98
  • LicenceBSD-3-Clause
  • SourceInit.hs
valuenewTFGen :: IO TFGen
#

Derive a new generator instance from the global RNG using split. This is the default way of obtaining a new RNG instance. Initial generator is seeded using mkSeedUnix on UNIX, and mkSeedTime otherwise. This should be eventually replaced with proper seeding.

valuemkTFGen :: Int -> TFGen
#

Quick and dirty way of creating a deterministically seeded generator.