category feedRandomnessBasicseditdelete

This category is a work in progress






Something about the category.

Recommendations

Say what everyone is using and what you recommend/don't recommend.

Not included

edit description
or press Ctrl+Enter to savemarkdown supported
#
random-fu (Hackage)
other
move item up move item down edit item info delete item
Summary edit summary

A powerful library with:

  • random numbers/variables
  • list shuffling and random choice
  • various probability distributions
  • cumulative distribution functions
  • a monadic interface

Can use different randomness sources (/dev/random and /dev/urandom, StdGen, the Mersenne twister generator).

Summary quit editing summary
Prosedit prosquit editing pros
  • Supports different distributions.
    move trait up move trait down edit trait delete trait
  • Provides a monadic interface.
    move trait up move trait down edit trait delete trait

press Ctrl+Enter or Enter to addmarkdown supportededit off
Consedit consquit editing cons
  • Can be harder to use than other, simpler libraries.
    move trait up move trait down edit trait delete trait

press Ctrl+Enter or Enter to addmarkdown supportededit off
Ecosystemedit ecosystem

ks-test (Kolmogorov distribution), random-extras (weighted shuffling and sampling, card shuffling, etc)

Ecosystemquit editing ecosystemor press Ctrl+Enter to savemarkdown supported
Notes
collapse notesedit notes

<notes are empty>

add something!

#
random (Hackage)
other
move item up move item down edit item info delete item
Summary edit summary

The default random generator library. Simple to use, doesn't have many features.

Summary quit editing summary
Prosedit prosquit editing pros
  • Convinient to use
    move trait up move trait down edit trait delete trait

press Ctrl+Enter or Enter to addmarkdown supportededit off
Consedit consquit editing cons
  • Very slow
    move trait up move trait down edit trait delete trait

press Ctrl+Enter or Enter to addmarkdown supportededit off
Ecosystemedit ecosystem

random-derive (automatically derive instances of Random)

Ecosystemquit editing ecosystemor press Ctrl+Enter to savemarkdown supported
Notes
collapse notesedit notes

<notes are empty>

add something!

#
MonadRandom (Hackage)
other
move item up move item down edit item info delete item
Summary edit summary

write something here!

Summary quit editing summary
Prosedit prosquit editing pros

    press Ctrl+Enter or Enter to addmarkdown supportededit off
    Consedit consquit editing cons

      press Ctrl+Enter or Enter to addmarkdown supportededit off
      Ecosystemedit ecosystem
      Ecosystemquit editing ecosystemor press Ctrl+Enter to savemarkdown supported
      Notes
      collapse notesedit notes

      <notes are empty>

      add something!

      #
      mwc-random (Hackage)
      other
      move item up move item down edit item info delete item
      Summary edit summary

      write something here!

      Summary quit editing summary
      Prosedit prosquit editing pros
      • Very fast!
        move trait up move trait down edit trait delete trait

      press Ctrl+Enter or Enter to addmarkdown supportededit off
      Consedit consquit editing cons
      • Less convinient to use than System.Random as it operates on top of PrimMonad (ie. you need IO or ST to use it). No pure interface available.
        move trait up move trait down edit trait delete trait

      press Ctrl+Enter or Enter to addmarkdown supportededit off
      Ecosystemedit ecosystem
      Ecosystemquit editing ecosystemor press Ctrl+Enter to savemarkdown supported
      Notes
      collapse notesedit notes

      <notes are empty>

      add something!

      #
      cryptonite (Hackage)
      other
      move item up move item down edit item info delete item
      Summary edit summary

      A collection of cryptography-related functions; listed here because it implements ChaCha, a cryptographically secure (CSPRNG) random number generator.

      Summary quit editing summary
      Prosedit prosquit editing pros
      • Cryptographically secure.
        move trait up move trait down edit trait delete trait

      press Ctrl+Enter or Enter to addmarkdown supportededit off
      Consedit consquit editing cons
      • Low-level; only knows how to generate random bytes, not ints or strings.
        move trait up move trait down edit trait delete trait
      • The package takes long to build and the random number generator is only a small part of it.
        move trait up move trait down edit trait delete trait

      press Ctrl+Enter or Enter to addmarkdown supportededit off
      Ecosystemedit ecosystem
      Ecosystemquit editing ecosystemor press Ctrl+Enter to savemarkdown supported
      Notes
      collapse notesedit notes

      <notes are empty>

      add something!

      #
      tf-random (Hackage)
      other
      move item up move item down edit item info delete item
      Summary edit summary

      write something here!

      Summary quit editing summary
      Prosedit prosquit editing pros

        press Ctrl+Enter or Enter to addmarkdown supportededit off
        Consedit consquit editing cons

          press Ctrl+Enter or Enter to addmarkdown supportededit off
          Ecosystemedit ecosystem
          Ecosystemquit editing ecosystemor press Ctrl+Enter to savemarkdown supported
          Notes
          collapse notesedit notes

          <notes are empty>

          add something!

          #
          pcg-random (Hackage)
          other
          move item up move item down edit item info delete item
          Summary edit summary

          An implementation of the PCG family of generators.

          Summary quit editing summary
          Prosedit prosquit editing pros
          • Claimed to be faster than the Mersenne twister, and harder to predict (Mersenne twister can be predicted after just 624 outputs).
            move trait up move trait down edit trait delete trait

          press Ctrl+Enter or Enter to addmarkdown supportededit off
          Consedit consquit editing cons

            press Ctrl+Enter or Enter to addmarkdown supportededit off
            Ecosystemedit ecosystem
            Ecosystemquit editing ecosystemor press Ctrl+Enter to savemarkdown supported
            Notes
            collapse notesedit notes

            <notes are empty>

            add something!

            #
            mersenne-random-pure64 (Hackage)
            other
            move item up move item down edit item info delete item
            Summary edit summary

            write something here!

            Summary quit editing summary
            Prosedit prosquit editing pros

              press Ctrl+Enter or Enter to addmarkdown supportededit off
              Consedit consquit editing cons

                press Ctrl+Enter or Enter to addmarkdown supportededit off
                Ecosystemedit ecosystem
                Ecosystemquit editing ecosystemor press Ctrl+Enter to savemarkdown supported
                Notes
                collapse notesedit notes

                <notes are empty>

                add something!