random icon indicating copy to clipboard operation
random copied to clipboard

Generate random values in Elm

Results 16 random issues
Sort by recently updated
recently updated
newest added

It seems like `cmdMap` is doing nothing in the code. I simply removed it.

In Random we have: ``` type Generator a = Generator (Seed -> (a, Seed)) ``` So if I have a way of doing `Seed -> (a, Seed))`, I should be...

Hey there! Hope you're doing well! I'm building a browser game where many clients are synced up and I need to share seeds amongst clients; I can get a `Random.Seed`...

The example link in README (https://elm-lang.org/examples/random) is broken

Changed a broken link to an example to the current links (it's grown to three examples). Added "side-effects" into the section about "same input, same output".

As per the dictionary: https://dictionary.cambridge.org/dictionary/english/reproducible Thanks for the great doc!

Fixes #21 `minRange` and `maxRange` are used in the let dec due to `hi` and `lo` (used in the `Random.int` sanitization step) already being in scope.

`Random.int` contains a sanitization step at: https://github.com/elm/random/blob/c1c9da4d861363cee1c93382d2687880279ed0dd/src/Random.elm#L81-L85 As such, `Random.int 100 -100` produces values in the range `[-100, 100]` `Random.float` contains no such step, and `Random.float 100 -100` produces values...

This commit fixed a broken link: https://github.com/elm/random/commit/a1eae055f72db1269284337f81d7fdca42133612 . This was back in 2019. It is now 2021 The version of the docs at https://package.elm-lang.org/packages/elm/random/latest/Random is still broken