Laytan
|
cb2768625a
math/rand: `choice_bit_set` return `not_empty` -> `ok`
|
10 months ago |
Laytan Laats
|
10c2f8dbeb
math/rand: add `choice_bit_set`
|
10 months ago |
Laytan Laats
|
bb4fc9979a
math/rand: support non-contiguous enums in choice_enum
|
10 months ago |
Jeroen van Rijn
|
f627a38b4f
Update rand.reset() example.
|
1 year ago |
gingerBill
|
0d881e1561
Improve rand.shuffle further by splitting into 64-bit and 32-bit parts
|
1 year ago |
gingerBill
|
ba49950454
Improve `rand.shuffle`
|
1 year ago |
gingerBill
|
1770e3a9a9
Fix typo
|
1 year ago |
gingerBill
|
19753ed8a3
Add `rand.Generator` and other calls
|
1 year ago |
gingerBill
|
59d87d1f05
Add `gen := context.random_generator` parameters to `rand` calls
|
1 year ago |
gingerBill
|
3f9a58808c
More style improvements
|
1 year ago |
gingerBill
|
149ecafdef
Remove the need for `rand` in `core:math/big`
|
1 year ago |
gingerBill
|
7ec17ecf98
Update `core:math/rand` to use `context.random_generator` and remove `rand.Rand`
|
1 year ago |
gingerBill
|
318d5e4a7e
Add `Reset` mode
|
1 year ago |
gingerBill
|
dc4ec8638c
Add `runtime.Random_Generator` interface
|
1 year ago |
Yawning Angel
|
e2fa9be7e2
core/math/rand: Use `core:crypto` for the system RNG
|
1 year ago |
Feoramund
|
3e449e93dd
Implement Fisher-Yates shuffle
|
1 year ago |
gingerBill
|
e201a2fabb
Add `rand.choice_enum`
|
1 year ago |
gingerBill
|
3e7e779abf
Replace `core:*` to `base:*` where appropriate
|
1 year ago |
Lucas Perlind
|
7cc5177078
Fixed up missing output for rand examples
|
1 year ago |
Lucas Perlind
|
8b680254ee
Better guarantee boundaries of floating point rand
|
2 years ago |
Lucas Perlind
|
b31d8b1ad0
Update rand documentation about floats
|
2 years ago |
gingerBill
|
67f48aca96
Fix `_random_u64`
|
2 years ago |
gingerBill
|
d13bed9a0a
Change algorithm to work on 64-bit integers rather than 32-bit integers internally
|
2 years ago |
gingerBill
|
904c48b11a
Fix range comment from `(0, n]` to `[0, n)`
|
2 years ago |
Lucas Perlind
|
ebe5636307
Document core:math/rand and add 'possible output'
|
2 years ago |
gingerBill
|
2df6cabee0
Add `@(require_results)` to `core:math/rand`
|
2 years ago |
Jeroen van Rijn
|
a51943e27f
Add `core:math/rand.choice`
|
2 years ago |
gingerBill
|
2a58bceb56
Add `rand.init_as_system` to allow for system-level based random number generation
|
3 years ago |
gingerBill
|
6c6de2a07d
Move distributions to a separate file
|
3 years ago |
gingerBill
|
be2c7b5c9b
Add numerous different random distribution procedures
|
3 years ago |