random

random number library

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