packages feed

pcg-random

Haskell bindings to the PCG random number generator.

view on Hackage

PCG is a family of simple fast space-efficient statistically good algorithms for random number generation. Unlike many general-purpose RNGs, they are also hard to predict. This library implements bindings to the standard C implementation. This includes the standard, unique, fast and single variants in the pcg family. There is a pure implementation that can be used as a generator with the random package as well as a faster primitive api that includes functions for generating common types. The generators in this module are suitable for use in parallel but make sure threads don't share the same generator or things will go horribly wrong.
versionuploadeduploaderchanges
0.1.4.02023-04-30 15:09 UTCcchalmers1 revisions+30/−15 lines, 7 filesdep ~primitivedep ~randomPVP: major bump suggested
0.1.3.72020-11-19 20:12 UTCcchalmers+17/−21 lines, 3 filesPVP: major bump suggested
0.1.3.62019-05-18 13:42 UTCcchalmers+25/−19 lines, 4 filesdep +pcg-randomdep ~primitivebuild-type:Customsetup-changedPVP: major bump suggested
0.1.3.52018-03-11 17:36 UTCcchalmers+12/−2 lines, 3 files
0.1.3.42016-06-21 19:07 UTCcchalmers+17/−7 lines, 3 files
0.1.3.32016-06-14 18:51 UTCcchalmers+341/−90 lines, 7 filesdep −time
0.1.3.22015-08-24 22:15 UTCcchalmers+345/−8 lines, 6 files
0.1.3.12015-06-17 00:35 UTCcchalmers+36/−14 lines, 6 files
0.1.3.02015-06-16 12:16 UTCcchalmers+36/−47 lines, 7 filesdep +bytestringdep +entropy
0.1.2.02015-03-29 19:43 UTCcchalmers+10/−6 lines, 4 filesdep ~primitive
0.1.1.02015-03-10 13:22 UTCcchalmers+294/−21 lines, 8 files
0.1.0.12015-02-04 15:07 UTCcchalmers+31/−7 lines, 7 filesPVP: minor bump suggested
0.1.0.02014-12-15 00:16 UTCcchalmers+4160/−0 lines, 16 filesdep +basedep +doctestdep +primitivesetup-changed

Dependencies of pcg-random-0.1.4.0

base >=4.3 && <5 4.22.0.0 → 4.22.1.0
2026-12-01 12:38 UTC4.22.1.0+388/−6 lines, 9 filesdep ~ghc-internalPVP: major bump suggested
2025-12-19 11:52 UTC4.22.0.0+886/−215 lines, 28 filesdep ~ghc-internalPVP ok
2026-03-27 12:26 UTC4.21.2.0+10/−3 lines, 4 filesdep ~ghc-internalPVP ok
2025-12-27 10:31 UTC4.21.1.0+17/−5 lines, 4 filesdep ~ghc-internalPVP ok
2024-12-16 09:24 UTC4.21.0.0+1170/−396 lines, 39 filesdep ~ghc-internalPVP ok

showing 5 of 61 versions

bytestring >=0 0.12.1.0 → 0.12.2.0
2024-12-06 21:41 UTC0.12.2.0+538/−437 lines, 44 filesdep ~QuickCheckdep ~basePVP ok
2024-02-16 03:27 UTC0.12.1.0+3398/−1642 lines, 37 filesdep +sybdep ~basePVP: major bump suggested
2023-08-16 01:53 UTC0.12.0.2+16/−2 lines, 3 files
2023-08-05 00:03 UTC0.12.0.1+47/−9 lines, 3 files
2023-07-07 01:45 UTC0.12.0.0+1459/−520 lines, 21 filesdep +data-array-bytePVP ok

showing 5 of 49 versions

doctest >=0 0.25.0.1 → 0.25.0.2
2026-09-24 10:26 UTC0.25.0.2+7/−2 lines, 3 filesPVP ok
2026-09-24 08:42 UTC0.25.0.1+36/−4 lines, 6 filesPVP ok
2026-05-03 17:07 UTC0.25.0+55/−31 lines, 7 filesPVP ok
2026-01-02 08:10 UTC0.24.3+25/−11 lines, 5 filesdep ~ghcPVP ok
2025-06-24 14:52 UTC0.24.2+17/−77 lines, 10 filesdep ~basedep ~ghcPVP ok

showing 5 of 79 versions

entropy >=0 0.4.1.10 → 0.4.1.11
2025-01-01 23:24 UTC0.4.1.11+28/−10 lines, 2 filessetup-changedPVP ok
2022-08-23 14:54 UTC0.4.1.10+3/−3 lines, 2 filesdep ~unix
2022-08-22 02:12 UTC0.4.1.9+42/−122 lines, 7 filesdep ~Win32dep ~ghcjs-dom
2021-11-02 14:54 UTC0.4.1.7+7/−6 lines, 2 filesdep ~Win32setup-changedPVP ok
2020-04-11 00:28 UTC0.4.1.6+242/−35 lines, 9 filessetup-changedPVP ok

showing 5 of 30 versions

primitive >=0.7 && <0.10 0.9.0.0 → 0.9.1.0
2025-03-31 14:42 UTC0.9.1.0+225/−135 lines, 12 filesdep +containersdep −ghc-primdep ~basePVP: major bump suggested
2023-10-05 15:07 UTC0.9.0.0+995/−657 lines, 17 filesdep ~QuickCheckdep ~basedep ~tastyPVP ok
2023-02-20 16:20 UTC0.8.0.0+328/−248 lines, 9 filesdep +data-array-bytedep ~basedep ~deepseqPVP ok
2022-05-20 18:46 UTC0.7.4.0+244/−146 lines, 10 filesdep +template-haskelldep −faildep −semigroupsdep ~basedep ~transformersPVP ok
2021-10-27 19:26 UTC0.7.3.0+951/−947 lines, 25 filesdep +tasty-benchdep ~basedep ~deepseqdep ~transformerssetup-changedPVP: major bump suggested

showing 5 of 30 versions

random >=1.2 && <2.0 1.3.0 → 1.3.1
2025-04-04 14:25 UTC1.3.1+15/−6 lines, 3 filesPVP ok
2025-01-06 04:03 UTC1.3.0+2410/−538 lines, 16 filesdep +data-array-bytedep ~basedep ~transformersPVP ok
2024-12-14 20:31 UTC1.2.1.3+22/−37 lines, 3 filesdep −doctestdep −mwc-randomdep −unliftiodep ~basedep ~containersdep ~primitivePVP ok
2024-02-04 16:26 UTC1.2.1.2+17/−12 lines, 2 filesdep ~doctestdep ~tastyPVP: major bump suggested
2022-05-09 02:32 UTC1.2.1.1+8/−9 lines, 3 filesdep −ghc-byteorderdep ~bytestringdep ~doctestdep ~mtlPVP ok

showing 5 of 15 versions

Reverse dependencies

3 packages depend on pcg-random

cuckoo 0.3.1 requires pcg-random >=0.1
ppad-random 0.1.0 requires pcg-random >=0
random-bytestring 0.1.4 requires pcg-random >=0.1