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