for more information visit the package's GitHub page
Package contains the following modules:
This library includes lots of extra helper functions for the Random module. It makes generating pseudo-random values much easier.
If you want to add one or find a bug, please open an issue. If you want to contribute, you can open a PR adding tests.
Random.List.choices
Random.List.shuffle
and Random.Array.shuffle
.sequence
and traverse
functionsRandom.List.shuffle
and Random.Array.shuffle
, especially on long lists/arrays.elm/random
.Color
module.Random.Date.day
to Random.Date.weekday
.Random.Date
.Random.Extra.bool
.Random.Extra.constant
; it's present in the official library.Random.Extra.choices
and Random.Extra.frequency
to require an element and a list, avoid the issue of an empty list.flatMap
as core's andThen
is identical.flatMapN
to andThenN
, for similar reasons.together
to combine
; see #1.Random.Extra.Float.normal
; see #2.Random.Extra.List
module; see #4.