aboutsummaryrefslogtreecommitdiff
path: root/core/math/rand
Commit message (Expand)AuthorAgeFilesLines
* 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
* 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
* Fix `_random_u64`gingerBill2023-08-151-3/+4
* Change algorithm to work on 64-bit integers rather than 32-bit integers inter...gingerBill2023-08-154-131/+28
* Fix range comment from `(0, n]` to `[0, n)`gingerBill2023-08-151-8/+8
* Document core:math/rand and add 'possible output'Lucas Perlind2023-05-311-23/+635
* Add `@(require_results)` to `core:math/rand`gingerBill2023-05-227-7/+49
* Add `core:math/rand.choice`Jeroen van Rijn2022-10-231-0/+9
* Add `_system_random` for DarwingingerBill2022-05-151-0/+21
* Add `rand.init_as_system` to allow for system-level based random number gener...gingerBill2022-05-153-0/+56
* Add Gompertz DistributiongingerBill2022-05-151-2/+22
* Add more distributionsgingerBill2022-05-151-0/+41
* Correct log normalgingerBill2022-05-151-1/+1
* Fix typogingerBill2022-05-151-2/+2
* Move distributions to a separate filegingerBill2022-05-152-251/+251
* Add numerous different random distribution proceduresgingerBill2022-05-151-0/+252
* Initialize the `global_rand` with the `intrinsics.read_cycle_counter()` valuegingerBill2022-02-031-3/+3
* Add allocator parameter to `rand.perm`gingerBill2022-02-011-2/+2
* Add `rand.exp_float64`gingerBill2022-01-272-8/+220
* Correct int31_max etcgingerBill2022-01-271-3/+3
* Strip even more semicolons if followed by a `}` or `)` on the same linegingerBill2021-08-311-8/+8
* Remove unneeded semicolons from the core librarygingerBill2021-08-312-80/+80
* big: Add `rand`.Jeroen van Rijn2021-08-111-1/+1
* Remove @(static) for global variablesgingerBill2021-05-191-2/+2
* Remove usage of `do` in core librarygingerBill2020-09-231-5/+15
* Add sanity conversion for rand.norm_float64gingerBill2020-09-101-0/+6
* Fix typogingerBill2020-09-071-1/+1