1
0
mirror of https://github.com/janet-lang/janet synced 2024-11-29 03:19:54 +00:00
janet/src
Calvin Rose aee1687215 Add RNG functionality to the math/ module.
The new RNG wraps up state for random number generation, so
one can have many rngs and even marshal and unmarshal them.
Adds math/rng, math/rng-uniform, and math/rng-int.

Also introduce `in` and change semantics for
indexing out of range. This commit enforces stricter
invariants on keys when indexing via a function call
on the data structure, or the new `in` function.

The `get` function is now more lax about keys, and will
not throw an error when a bad key is used for a data structure, instead
returning the default value.
2019-11-08 17:40:04 -06:00
..
boot Add RNG functionality to the math/ module. 2019-11-08 17:40:04 -06:00
conf Update to 1.4.0 2019-10-14 20:35:13 -05:00
core Add RNG functionality to the math/ module. 2019-11-08 17:40:04 -06:00
include Add RNG functionality to the math/ module. 2019-11-08 17:40:04 -06:00
mainclient Print error message on bad CLI usage. 2019-11-05 12:51:15 -06:00
webclient Fix webclient. 2019-10-14 20:55:04 -05:00