aboutsummaryrefslogtreecommitdiff
path: root/core/math/rand
Commit message (Collapse)AuthorAgeFilesLines
* Remove `core:mem` import from `core:math/big`.Jeroen van Rijn3 days1-4/+3
|
* optimized slice filling in xoshiro/pcg_random_generator_proc (#6001)Xotchkass2026-01-132-18/+26
|
* core:math/rand small documentation fixWrath2025-12-221-3/+3
|
* Fix #5978: choice_bit_set respects bit_set domainAndreas Stenmark2025-11-301-4/+7
|
* base/runtime: Add chacha8rand as the default RNGYawning Angel2025-11-291-3/+42
|
* math/rand: Add xoshiro256**Yawning Angel2025-11-291-0/+123
| | | | | This is extracted from the previos PR as an improved non-cryptographic PRNG option.
* math/rand: Add a copy of the existing PCG PRNGYawning Angel2025-11-291-0/+107
| | | | | | The switch to the new RNG will be a breaking change as the outputted sequence will change for a given seed. This is intended for backward compatibility purposes only.
* changed panic to assertXotchkass2025-11-281-24/+8
|
* Add range-based random number generation functionsXotchkass2025-11-281-0/+328
|
* add uint32_max, uint64_max, uint128_max and uint_max procs to math/randXotchkass2025-11-261-0/+160
|
* Fix docs on int*_maxNicknEma2025-11-041-4/+4
|
* Further overhaul of package line comments.Jeroen van Rijn2025-10-091-1/+1
|
* Package lines for `core:math` and more.Jeroen van Rijn2025-10-091-4/+1
|
* remove private _random_u64 and move it's functionality into public uint64Xotchkass2025-08-141-19/+16
|
* use runtime.random_generator_read_bytes in read procedure instead of filling ↵Xotchkass2025-08-141-12/+2
| | | | it manually.
* Fix rand.int_max commentJeroen van Rijn2025-05-281-1/+1
|
* Fix float64_range exampleJeroen van Rijn2025-04-211-2/+2
|
* Fix broken examples in documentation tester.Jeroen van Rijn2025-04-051-1/+1
| | | | | | | | | No more: ``` We could not find the procedure "pkg_foo_example :: proc()" needed to test the example created for "pkg.foo" The following procedures were found: bar() ```
* Add `@(require_results)` to random generatorgingerBill2025-02-241-1/+0
|
* fix typo in float32_range doc stringColter2025-01-291-1/+1
|
* math/rand: add @(require_results) to createLaytan Laats2025-01-181-0/+1
|
* General clean up of codegingerBill2025-01-011-24/+0
|
* math/rand: `choice_bit_set` return `not_empty` -> `ok`Laytan2024-10-281-3/+3
|
* math/rand: add `choice_bit_set`Laytan Laats2024-10-261-0/+49
|
* math/rand: support non-contiguous enums in choice_enumLaytan Laats2024-10-251-15/+15
|
* Update rand.reset() example.Jeroen van Rijn2024-07-311-1/+1
|
* Improve rand.shuffle further by splitting into 64-bit and 32-bit partsgingerBill2024-07-161-1/+7
|
* Improve `rand.shuffle`gingerBill2024-07-161-1/+1
|
* Fix typogingerBill2024-07-111-1/+1
|
* Add `rand.Generator` and other callsgingerBill2024-07-111-0/+13
|
* Add `gen := context.random_generator` parameters to `rand` callsgingerBill2024-07-114-114/+114
|
* More style improvementsgingerBill2024-06-291-1/+1
|
* Remove the need for `rand` in `core:math/big`gingerBill2024-06-151-1/+0
|
* Update `core:math/rand` to use `context.random_generator` and remove `rand.Rand`gingerBill2024-06-154-357/+130
|
* Add `Reset` modegingerBill2024-06-151-0/+12
|
* Remove unneeded reassignment of `r`gingerBill2024-06-151-7/+0
|
* Add `runtime.Random_Generator` interfacegingerBill2024-06-151-0/+27
|
* Add `@(rodata)` and `@(static, rodata)` where appropriategingerBill2024-06-062-6/+6
|
* core/math/rand: Use `core:crypto` for the system RNGYawning Angel2024-04-235-96/+21
| | | | | This removes some code duplication and expands support for the system RNG to all targets that `core:crypto` supports.
* Implement Fisher-Yates shuffleFeoramund2024-04-151-2/+2
|
* Add `rand.choice_enum`gingerBill2024-02-101-0/+20
|
* Replace `core:*` to `base:*` where appropriategingerBill2024-01-281-1/+1
|
* Merge branch 'master' into new-sys-unixgingerBill2023-10-311-0/+14
|\
| * Replace Math.random with crypto.getRandomValues for _system_numberDamian Tarnawski2023-10-271-3/+5
| |
| * Rename rand to rand_f64Damian Tarnawski2023-10-271-2/+3
| |
| * Add system_random and random_bytes for js targetDamian Tarnawski2023-10-271-0/+11
| |
* | Implement new sys/unix packageflysand72023-10-271-17/+18
|/
* Fixed up missing output for rand examplesLucas Perlind2023-09-271-1/+103
|
* Better guarantee boundaries of floating point randLucas Perlind2023-08-181-15/+30
|
* Update rand documentation about floatsLucas Perlind2023-08-161-8/+13
|