An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

random

This package provides basic pseudo-random number generation, including the ability to split random number generators. In pure code, use System.Random.uniform and System.Random.uniformR from System.Random to generate pseudo-random numbers with a pure pseudo-random number generator like System.Random.StdGen. As an example, here is how you can simulate rolls of a six-sided die using System.Random.uniformR: See System.Random for more details. In monadic code, use System.Random.Stateful.uniformM and System.Random.Stateful.uniformRM from System.Random.Stateful to generate pseudo-random numbers with a monadic pseudo-random number generator, or using a monadic adapter. As an example, here is how you can simulate rolls of a six-sided die using System.Random.Stateful.uniformRM: The monadic adapter System.Random.Stateful.runStateGen_ is used here to lift the pure pseudo-random number generator pureGen into the System.Random.Stateful.StatefulGen context. The monadic interface can also be used with existing monadic pseudo-random number generators. In this example, we use the one provided in the mwc-random package: See System.Random.Stateful for more details.

Ecosystem
hackage.haskell.org
Latest Release
1.3.1
11 months ago
Versions
15
Downloads
438,414 total
Dependent Packages
283
Dependent Repos
5,963
1.3.1
Published: 11 months ago
Registry - Download
1.3.0
Published: about 1 year ago
Registry - Download
1.2.1.3
Published: about 1 year ago
Registry - Download
1.2.1.2
Published: about 2 years ago
Registry - Download
1.2.1.1
Published: almost 4 years ago
Registry - Download
1.2.1
Published: over 4 years ago
Registry - Download
1.2.0
Published: over 5 years ago
Registry - Download
1.1
Published: over 11 years ago
Registry - Download
1.0.1.3
Published: over 11 years ago
Registry - Download
1.0.1.1
Published: over 14 years ago
Registry - Download
1.0.1.0
Published: over 14 years ago
Registry - Download
1.0.0.3
Published: over 15 years ago
Registry - Download
1.0.0.2
Published: about 16 years ago
Registry - Download
1.0.0.1
Published: over 17 years ago
Registry - Download
1.0.0.0
Published: over 18 years ago
Registry - Download
Links
Registry hackage.haskell.org
JSON API View JSON
CodeMeta codemeta.json
Package Details
PURL pkg:hackage/random
spec
License BSD-3-Clause
First Release over 18 years ago
Last Synced about 20 hours ago
Repository
Docker Dependents 2
Docker Downloads 89
Rankings on hackage.haskell.org
Overall Top 0.4%
Downloads Top 0.1%
Dependent packages Top 0.1%
Dependent repos Top 0.1%
Docker downloads Top 1.3%