Sat, 10 Aug 2024 02:46:48 UTC | login

Information for RPM ghc-random-1.2.1.1-3.fc40.riscv64.rpm

ID1097281
Nameghc-random
Version1.2.1.1
Release3.fc40
Epoch
Archriscv64
SummaryPseudo-random number generation
DescriptionThis package provides basic pseudo-random number generation, including the ability to split random number generators. == "System.Random": pure pseudo-random number interface 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': >>> let roll = uniformR (1, 6) :: RandomGen g => g -> (Word, g) >>> let rolls = unfoldr (Just . roll) :: RandomGen g => g -> [Word] >>> let pureGen = mkStdGen 42 >>> take 10 (rolls pureGen) :: [Word] [1,1,3,2,4,5,3,4,6,2] See "System.Random" for more details. == "System.Random.Stateful": monadic pseudo-random number interface 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': >>> let rollM = uniformRM (1, 6) :: StatefulGen g m => g -> m Word >>> let pureGen = mkStdGen 42 >>> runStateGen_ pureGen (replicateM 10 . rollM) :: [Word] [1,1,3,2,4,5,3,4,6,2] 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 <https://hackage.haskell.org/package/mwc-random mwc-random> package: >>> import System.Random.MWC as MWC >>> let rollM = uniformRM (1, 6) :: StatefulGen g m => g -> m Word >>> monadicGen <- MWC.create >>> replicateM 10 (rollM monadicGen) :: IO [Word] [2,3,6,6,4,4,3,1,5,4] See "System.Random.Stateful" for more details.
Build Time2023-11-17 15:21:57 GMT
Size184.62 KB
d7cb1601137f5434a8f5d9d39ea5ad7f
LicenseBSD-3-Clause
Buildrootf40-build-742493-110802
Provides
ghc-random = 1.2.1.1-3.fc40
ghc-random(riscv-64) = 1.2.1.1-3.fc40
libHSrandom-1.2.1.1-I0wUgAAbf0g3qHR3e8uT0o-ghc9.4.5.so()(64bit)
Obsoletes No Obsoletes
Conflicts No Conflicts
Requires
libHSarray-0.5.4.0-ghc9.4.5.so()(64bit)
libHSbase-4.17.1.0-ghc9.4.5.so()(64bit)
libHSbytestring-0.11.4.0-ghc9.4.5.so()(64bit)
libHSdeepseq-1.4.8.0-ghc9.4.5.so()(64bit)
libHSghc-bignum-1.3-ghc9.4.5.so()(64bit)
libHSghc-boot-th-9.4.5-ghc9.4.5.so()(64bit)
libHSghc-prim-0.9.0-ghc9.4.5.so()(64bit)
libHSmtl-2.2.2-ghc9.4.5.so()(64bit)
libHSpretty-1.1.3.6-ghc9.4.5.so()(64bit)
libHSsplitmix-0.1.0.4-7e8CibdlMRLAGh7KO5VlFe-ghc9.4.5.so()(64bit)
libHStemplate-haskell-2.19.0.0-ghc9.4.5.so()(64bit)
libHStransformers-0.5.6.2-ghc9.4.5.so()(64bit)
libc.so.6()(64bit)
libc.so.6(GLIBC_2.27)(64bit)
libgmp.so.10()(64bit)
libm.so.6()(64bit)
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsZstd) <= 5.4.18-1
rtld(GNU_HASH)
Recommends No Recommends
Suggests No Suggests
Supplements No Supplements
Enhances No Enhances
Files
1 through 6 of 6
Name descending sort Size
/usr/share/licenses/ghc-random/LICENSE2.87 KB
/usr/share/licenses/ghc-random0.00 B
/usr/lib64/ghc-9.4.5/lib/libHSrandom-1.2.1.1-I0wUgAAbf0g3qHR3e8uT0o-ghc9.4.5.so1.13 MB
/usr/lib/.build-id/63/0a3027a7320d2b65e4d0df9c92297338a7df0690.00 B
/usr/lib/.build-id/630.00 B
/usr/lib/.build-id0.00 B
Component of
Page:
<<< 101 through 150 of 269 >>>
Buildroot descending sort Created State
f40-build-750707-115129 2023-11-29 08:15:34 expired
f40-build-750512-115045 2023-11-28 18:15:45 expired
f40-build-750511-115045 2023-11-28 18:15:24 expired
f40-build-750278-114879 2023-11-28 14:58:02 expired
f40-build-750271-114877 2023-11-28 14:47:46 expired
f40-build-749604-114438 2023-11-28 05:39:13 expired
f40-build-749455-114420 2023-11-27 17:38:52 expired
f40-build-749288-114260 2023-11-27 14:01:10 expired
f40-build-748408-113745 2023-11-26 13:30:10 expired
f40-build-747735-113315 2023-11-25 13:54:40 expired
f40-build-747304-113153 2023-11-24 15:45:12 expired
f40-build-746656-112818 2023-11-23 09:43:46 expired
f40-build-746585-112708 2023-11-23 08:29:47 expired
f40-build-746412-112585 2023-11-22 19:21:28 expired
f40-build-746281-112491 2023-11-22 17:11:45 expired
f40-build-746056-112399 2023-11-22 07:27:20 expired
f40-build-745349-111851 2023-11-21 08:48:20 expired
f40-build-745267-111849 2023-11-21 03:19:14 expired
f40-build-745225-111971 2023-11-20 18:50:56 expired
f40-build-745062-111947 2023-11-20 16:13:42 expired
f40-build-745059-111947 2023-11-20 16:12:12 expired
f40-build-745033-111932 2023-11-20 15:54:42 expired
f40-build-745029-111943 2023-11-20 15:50:07 expired
f40-build-745021-111943 2023-11-20 15:48:08 expired
f40-build-744991-111932 2023-11-20 15:28:50 expired
f40-build-744983-111932 2023-11-20 15:22:56 expired
f40-build-744951-111932 2023-11-20 15:00:11 expired
f40-build-744941-111929 2023-11-20 14:51:38 expired
f40-build-744916-111851 2023-11-20 13:41:29 expired
f40-build-744915-111851 2023-11-20 13:40:09 expired
f40-build-744914-111851 2023-11-20 13:39:47 expired
f40-build-744913-111851 2023-11-20 13:38:53 expired
f40-build-744912-111851 2023-11-20 13:38:30 expired
f40-build-744911-111851 2023-11-20 13:34:27 expired
f40-build-744909-111851 2023-11-20 13:32:48 expired
f40-build-744903-111851 2023-11-20 13:25:22 expired
f40-build-744901-111851 2023-11-20 13:24:41 expired
f40-build-744900-111851 2023-11-20 13:23:19 expired
f40-build-744899-111851 2023-11-20 13:22:33 expired
f40-build-744894-111849 2023-11-20 13:17:58 expired
f40-build-744890-111849 2023-11-20 13:16:25 expired
f40-build-744887-111849 2023-11-20 13:14:01 expired
f40-build-744880-111849 2023-11-20 13:07:55 expired
f40-build-744878-111849 2023-11-20 13:07:17 expired
f40-build-744877-111849 2023-11-20 13:06:05 expired
f40-build-744876-111849 2023-11-20 13:05:57 expired
f40-build-744781-111827 2023-11-20 11:47:12 expired
f40-build-744684-111789 2023-11-20 10:10:13 expired
f40-build-744652-111787 2023-11-20 09:43:43 expired
f40-build-744649-111787 2023-11-20 09:41:52 expired