{"@context":"https://w3id.org/codemeta/3.0","@type":"SoftwareSourceCode","identifier":"pkg:hackage/random","name":"random","description":"This package provides basic pseudo-random number generation, including the\nability to split random number generators.\n\nIn pure code, use System.Random.uniform and System.Random.uniformR from\nSystem.Random to generate pseudo-random numbers with a pure pseudo-random\nnumber generator like System.Random.StdGen.\n\nAs an example, here is how you can simulate rolls of a six-sided die using\nSystem.Random.uniformR:\n\nSee System.Random for more details.\n\nIn monadic code, use System.Random.Stateful.uniformM and\nSystem.Random.Stateful.uniformRM from System.Random.Stateful to generate\npseudo-random numbers with a monadic pseudo-random number generator, or\nusing a monadic adapter.\n\nAs an example, here is how you can simulate rolls of a six-sided die using\nSystem.Random.Stateful.uniformRM:\n\nThe monadic adapter System.Random.Stateful.runStateGen_ is used here to lift\nthe pure pseudo-random number generator pureGen into the\nSystem.Random.Stateful.StatefulGen context.\n\nThe monadic interface can also be used with existing monadic pseudo-random\nnumber generators. In this example, we use the one provided in the\nmwc-random package:\n\nSee System.Random.Stateful for more details.","version":"1.3.1","softwareVersion":"1.3.1","license":"https://spdx.org/licenses/BSD-3-Clause","keywords":["bsd3","library","system","Propose Tags"],"maintainer":[{"@type":"Person","name":"DominicSteinitz"},{"@type":"Person","name":"Bodigrim"},{"@type":"Person","name":"topos"},{"@type":"Person","name":"lehins"}],"author":[{"@type":"Person","name":"DominicSteinitz"},{"@type":"Person","name":"Bodigrim"},{"@type":"Person","name":"topos"},{"@type":"Person","name":"lehins"}],"copyrightHolder":[{"@type":"Person","name":"DominicSteinitz"},{"@type":"Person","name":"Bodigrim"},{"@type":"Person","name":"topos"},{"@type":"Person","name":"lehins"}],"dateCreated":"2007-11-03","dateModified":"2025-04-04","datePublished":"2025-04-04","copyrightYear":2007,"downloadUrl":"https://hackage.haskell.org/package/random-1.3.1/random-1.3.1.tar.gz","applicationCategory":"hackage","runtimePlatform":"hackage","sameAs":["https://hackage.haskell.org/package/random"]}