random

random number library

Version on this page:1.1
LTS Haskell 9.6:1.1
Stackage Nightly 2017-09-26:1.1
Latest on Hackage:1.1
BSD3 licensed
Maintained by carter dot schonwald at google mail dot com

Module documentation for 1.1

The Haskell Standard Library -- Random Number Generation

Build Status

This library provides a basic interface for (splittable) random number generators.

The API documentation can be found here:

http://hackage.haskell.org/package/random/docs/System-Random.html

A module supplying this interface is required for Haskell 98 (but not Haskell 2010). An older [version] (http://www.haskell.org/ghc/docs/latest/html/libraries/haskell98/Random.html) of this library is included with GHC in the haskell98 package. This newer version, with compatible api, is included in the [Haskell Platform] (http://www.haskell.org/platform/contents.html).

Please report bugs in the Github [issue tracker] (https://github.com/haskell/random/issues) (no longer in the GHC trac).

Changes

1.1

  • breaking change to randomIValInteger to improve RNG quality and performance see https://github.com/haskell/random/pull/4 and ghc https://ghc.haskell.org/trac/ghc/ticket/8898
  • correct documentation about generated range of Int32 sized values of type Int https://github.com/haskell/random/pull/7
  • fix memory leaks by using strict fields and strict atomicModifyIORef' https://github.com/haskell/random/pull/8 related to ghc trac tickets #7936 and #4218
  • support for base < 4.6 (which doesnt provide strict atomicModifyIORef') and integrating Travis CI support. https://github.com/haskell/random/pull/12
  • fix C type in test suite https://github.com/haskell/random/pull/9

1.0.1.1

bump for overflow bug fixes

1.0.1.2

bump for ticket 8704, build fusion

1.0.1.0

bump for bug fixes,

1.0.0.4

bumped version for float/double range bugfix

Depends on:
Used by 795 packages:
3d-graphics-examples, abc-puzzle, abstract-deque, abstract-deque-tests, accelerate-cublas, accelerate-examples, ACME, acme-colosson, acme-lolcat, acme-memorandom, acme-miscorder, adhoc-network, aern2-real, AERN-Basics, AES, AGI, airship, aivika, aivika-branches, aivika-distributed, aivika-lattice, aivika-realtime, aivika-transformers, ajhc, AlanDeniseEricLauren, alea, alga, Allure, alms, Animas, archiver, arithmetic, arithmoi, astrds, Attrac, audiovisual, authenticate-oauth, auto, autom, avatar-generator, aws-kinesis-client, b9, babylon, backdropper, bake, Barracuda, BASIC, Befunge93, bein, benchmark-function, bind-marshal, bio, biohazard, bitcoin-hs, bkr, ble, blubber-server, bluetile, board-games, bogre-banana, bowntz, bpann, breve, brians-brain, btree-concurrent, cabal-install, cabal-install-ghc72, cabal-install-ghc74, cairo-canvas, call, carte, cflp, cgi-utils, chalmers-lava2000, charade, ChasingBottoms, chatty, checkers, chell, chell-quickcheck, clckwrks, clckwrks-plugin-page, click-clack, cltw, codeworld-api, coincident-root-loci, colorless, combinat, combinatorial-problems, Combinatorrent, commutative, comonad-random, computational-algebra, conductive-base, conductive-hsc3, conductive-song, conjugateGradient, conjure, containers-benchmark, copilot, copilot-c99, copilot-core, copilot-theorem, couch-hs, cqrs-example, cqrs-testkit, craft, creatur, crf-chain1, crf-chain1-constrained, Crypto, crypto-classical, cryptol, CSPM-FiringRules, currency-codes, d3js, dao, Dao, darcs, darcs-beta, darcsden, data-structure-inferrer, dbmigrations, dbus, DCFL, ddc-war, Deadpan-DDP, DeepDarkFantasy, deepseq-bounded, DefendTheKing, dejafu, despair, dfsbuild, diagrams-contrib, dictionaries, dingo-core, diplomacy-server, distributed-process, distributed-process-systest, distributed-process-tests, distribution, djembe, dns, dominion, dph-base, dph-examples, dph-lifted-base, dph-lifted-copy, dph-lifted-vseg, dph-prim-interface, dph-prim-par, dph-prim-seq, dpor, DrIFT, DrIFT-cabalized, DSH, dsh-sql, dsp, Dust, Dust-crypto, Dust-tools, Dust-tools-pcap, dynamic-plot, DynamicTimeWarp, edge, edit-distance, egison, elocrypt, erlang, estreps, Etage, Etage-Graph, EtaMOO, ety, Euterpea, eventstore, exact-real, Extra, ez-couch, factory, fadno-braids, faker, falling-turnip, FComp, feldspar-language, FermatsLastMargin, fixedprec, flickr, flower, flowsim, fluent-logger, ForSyDe, Foster, fountain, fpco-api, FractalArt, Fractaler, frag, freddy, free-game, freekick2, freesect, FunGEn, Fungi, funsat, fuzzcheck, fuzzy-timings, GA, game-of-life, game-probability, GeBoP, geek, gegl, gemstone, gencheck, general-games, generators, gen-passwd, GenSmsPdu, gf, ginsu, git, git-annex, gitit, glome-hs, GlomeView, gloss-examples, GLUT, gmap, gnome-desktop, gochan, google-cloud, google-drive, gore-and-ash, gotta-go-fast, gps2htmlReport, Graph500, Graphalyze, graphite, graylog, gridland, gruff-examples, gtk2hs-buildtools, hackage-server, hackport, hadoop-rpc, hahp, hakaru, hakyll, halfs, handa-gdata, handwriting, hangman, Hangman, hans, HAppS-Server, HAppS-State, happstack-auth, happstack-authenticate, happstack-dlg, happstack-facebook, happstack-helpers, happstack-state, happstack-util, HasGP, haskeem, haskell-cnc, HaskellForMaths, haskell-in-space, HaskellNN, Haskelloids, haskell-platform-test, haskell-proxy-list, haskellscrabble, HaskellTorrent, haskell-xmpp, haskoin-node, haskore, haskore-supercollider, haskore-synthesizer, haste-compiler, haste-lib, hat, Hate, hats, HaXml, hbayes, hbro, HCard, HCL, hcoap, HCodecs, hcron, hdigest, hdo, hdph, hedgehog, heist, helium-overture, helix, hellnet, helm, Hermes, hero-club-five-tenets, hetris, heukarya, heyefi, HFitUI, hgen, hgeometry, hgl-example, hiccup, Hieroglyph, hint, hinterface, hinvaders, hirt, hit, HLearn-algebra, hmark, HMarkov, hmatrix, hmatrix-gsl, hmatrix-tests, hmm-hmatrix, hMollom, hnn, hoauth, hogg, hold-em, Holumbus-Distribution, Holumbus-Storage, holy-project, hommage, hoodie, hopfield, HPDF, hpg, hps, hps-cairo, hquantlib, hs2048, Hs2lib, hS3, HsASA, hsbencher, hsc3, hsc3-graphs, hsc3-lang, hsc3-server, hs-captcha, hs-carbon, hscuid, hscurses-fish-ex, hsgsom, hs-logo, hs-nombre-generator, hsntp, HSoM, hspec-core, hspec-golden-aeson, hspec-meta, hs-pgms, hs-pkpass, hsshellscript, hstatistics, hstest, hstorchat, hs-twitter, hstzaar, hTensor, htestu, HTF, HTicTacToe, http-client, htzaar, HXMPP, hyahtzee, hydra-print, hydrogen-prelude, hylolib, hyperion, ideas, ideas-math, ide-backend, IFS, ihaskell, ihaskell-parsec, imap, imprevu, include-file, intel-aes, intricacy, iptadmin, IPv6Addr, ircbot, IrrHaskell, itemfield, ivory-quickcheck, jalla, jespresso, jsaddle, JYU-Utils, kansas-lava, karps, keenser, keter, keysafe, KiCS, krapsh, laborantin-hs, labyrinth, labyrinth-server, lambdabot-core, lambdabot-misc-plugins, lambdabot-utils, LambdaHack, LambdaNet, language-boogie, language-kort, language-puppet, leaky, Level0, levmar-chart, lgtk, liblawless, libmolude, libravatar, life, linear-vect, llsd, llvm-pretty-bc-parser, local-search, log-utils, lojban, lol, loopy, L-seed, LslPlus, ltiv1p1, lvish, mage, MagicHaskeller, manatee-mplayer, markov-chain, markov-processes, mars, marvin, mastermind, maxent-learner-hw, maxent-learner-hw-gui, MazesOfMonad, mbox-tools, mediabus, mediabus-fdk-aac, mediabus-rtp, memorable-bits, mersenne-random-pure64, MFlow, mida, midi, midimory, milena, mime-mail, mines, minesweeper, MissingH, mltool, Moe, moesocks, MonadCompose, monadiccp, monad-par-extras, MonadRandom, MonadRandomLazy, mongoDB, moo, mp, msgpack-rpc, MuCheck, mudbath, mysnapsession, myTestlll, NameGenerator, narc, nats-queue, naver-translate, neet, nehe-tuts, neko-obfs, nemesis-titan, NestedSampling, netcore, netease-fm, netlines, nettle-frp, netwire, network-metrics, network-transport-tests, network-transport-zeromq, neural, newsynth, Ninjas, nomyx-core, Nomyx-Core, nomyx-language, Nomyx-Language, normaldistribution, notmuch-web, NTRU, Numbers, numeric-prelude, nymphaea, obdd, on-a-horse, on-demand-ssh-tunnel, opengles, opensoundcontrol-ht, opentheory-char, opentheory-primitive, open-witness, operational, orc, orizentic, oscpacking, pandoc, Paraiso, parallel-io, parconc-examples, Parry, partage, passage, passwords, PBKDF2, pcgen, pcg-random, pdf-toolbox-viewer, penrose, pg-harness, pg-harness-server, pia-forward, pinboard, pixelated-avatar-generator, pkcs1, PlayHangmanGame, PlslTools, plugins, poker-eval, Pollutocracy, pontarius-xmpp, pontarius-xpmn, postgresql-simple-queue, pqc, praglude, primula-board, priority-sync, probability, processing-for-haskell, project-m36, PropLogic, pubsub, Pugs, pugs-compat, pugs-DrIFT, PUH-Project, push-notify-apn, putlenses, pwstore-fast, pwstore-purehaskell, qchas, QIO, QLearn, QuadEdge, quantfin, quantum-arrow, Quelea, QuickCheck, QuickCheck-GenT, quickcheck-state-machine, quickspec, quipper, quipper-core, quipper-rendering, Raincat, raketka, Random123, random-derive, random-eff, random-effin, random-shuffle, random-source, random-stream, random-strings, random-tree, random-variates, randsolid, rand-vars, RANSAC, raven-haskell, reactive, reactive-balsa, reactive-jack, reactive-midyim, reactivity, reflex-dom-contrib, reflex-gloss-scene, reform-happstack, repa-examples, repr, rest-core, retry, ReviewBoard, riak, rlglue, rl-satton, RNAdesign, RNAlien, RNAwolf, rncryptor, roguestar-engine, roguestar-gl, roller, rsagl, rsagl-frp, rsagl-math, rtnetlink, salvia, salvia-sessions, sbv, scalp-webhooks, scholdoc, scroll, scrz, Scurry, secret-santa, selenium-server, seqloc-datafiles, servant-aeson-specs, servant-auth-hmac, servant-examples, SessionLogger, setgame, sexpr, sgd, shake, shelduck, showdown, sibe, sigma-ij, simgi, simple-genetic-algorithm, simple-genetic-algorithm-mr, simple-neural-networks, simplex, simseq, sirkel, smaoin, smartcheck, snake, snake-game, snap-core, snaplet-typed-sessions, snap-routes, snmp, snorkels, snowflake-server, snowglobe, SoccerFun, SoccerFunGL, socketio, SourceGraph, SpaceInvaders, spike, splitmix, spsa, squeeze, sr-extra, ssh, starrover2, statistics-linreg, statsd, statsd-client, stochastic, streamed, streaming-commons, string-random, stripe-tests, stunclient, stunts, sunlight, sunroof-examples, supercollider-ht, supercollider-midi, swagger-petstore, swagger-test, swearjure, symon, sync-mht, synthesizer, synthesizer-alsa, synthesizer-core, synthesizer-dimensional, synthesizer-inference, synthesizer-llvm, t3-server, takusen-oracle, task, tasty-dejafu, tasty-hspec, tasty-quickcheck, tateti-tateti, tbox, tdd-util, tensor, test-framework, test-framework-quickcheck, test-framework-quickcheck2, testpack, testrunner, test-sandbox, test-sandbox-quickcheck, tetris, text-show-instances, tf-random, thorn, threefish, thyme, tianbar, time-exts, TimePiece, time-warp, Titim, toolshed, topkata, transient, transient-universe, treeviz, tskiplist, tslogger, tsparse, tttool, turni, twentefp-websockets, TypeClass, ulid, unfoldable, Useful, uuid, uuid-types, varan, vcache, vect, vect-floating, vhd, Villefort, vintage-basic, vivid, vty-examples, vty-ui, wai-routes, wai-secure-cookies, web-push, websockets, whim, whitespace, WMSigner, wrecker, wxAsteroids, xdcc, xhtml-combinators, xml-push, xmonad-contrib, xmonad-contrib-bluetilebranch, xmonad-eval, xmonad-utils, xmonad-wallpaper, XMPP, xorshift, xsact, YACPong, Yampa, yampa2048, Yampa-core, yesod-auth, yesod-auth-account-fork, yesod-auth-hmac-keccak, yesod-auth-oauth2, yesod-core, yesod-crud, yesod-session-redis, yes-precure5-command, zeno, ZMachine, Zora, zre
comments powered byDisqus