packages feed

exchangealgebra-0.5.1.0: src/ExchangeAlgebra/Simulate/Random.hs

{- |
    Module     : ExchangeAlgebra.Simulate.Random
    Copyright  : (c) Kaya Akagi. 2018-2026
    Maintainer : yakagika@icloud.com

    Released under the OWL license

    Random-number helpers used by simulations: Box-Muller normal variates
    ('normal', 'normal'') and generator advancement ('updateGen'). All three
    are re-exported unchanged from "ExchangeAlgebra.Simulate"; this module
    only separates them from the state-space engine
    ("ExchangeAlgebra.Simulate.Engine").

    >>> import System.Random (mkStdGen)
    >>> fst (normal' (5, 0) (mkStdGen 1)) :: Double
    5.0
-}

module ExchangeAlgebra.Simulate.Random
    ( normal
    , normal'
    , updateGen
    ) where

import           ExchangeAlgebra.Simulate (normal, normal', updateGen)