Commit Graph

41 Commits

Author SHA1 Message Date
gingerBill
e201a2fabb Add rand.choice_enum 2024-02-10 15:13:09 +00:00
gingerBill
3e7e779abf Replace core:* to base:* where appropriate 2024-01-28 22:18:51 +00:00
gingerBill
eb261f5b28 Merge branch 'master' into new-sys-unix 2023-10-31 12:16:25 +00:00
Damian Tarnawski
49da19e013 Replace Math.random with crypto.getRandomValues for _system_number 2023-10-27 12:06:35 +02:00
flysand7
4d65b1ab9c Implement new sys/unix package 2023-10-27 10:51:21 +11:00
Damian Tarnawski
166803a2a5 Rename rand to rand_f64 2023-10-27 00:18:41 +02:00
Damian Tarnawski
11a2b2a942 Add system_random and random_bytes for js target 2023-10-27 00:05:38 +02:00
Lucas Perlind
7cc5177078 Fixed up missing output for rand examples 2023-09-27 16:34:19 +10:00
Lucas Perlind
8b680254ee Better guarantee boundaries of floating point rand 2023-08-18 11:19:01 +10:00
Lucas Perlind
b31d8b1ad0 Update rand documentation about floats 2023-08-16 21:13:56 +10:00
gingerBill
67f48aca96 Fix _random_u64 2023-08-15 11:06:12 +01:00
gingerBill
d13bed9a0a Change algorithm to work on 64-bit integers rather than 32-bit integers internally 2023-08-15 10:53:59 +01:00
gingerBill
904c48b11a Fix range comment from (0, n] to [0, n) 2023-08-15 10:36:00 +01:00
Lucas Perlind
ebe5636307 Document core:math/rand and add 'possible output'
Possible output allows us to just type check a test
and have some sort of output field in the docs but
not actually verify it matches stdout
2023-05-31 09:49:12 +10:00
gingerBill
2df6cabee0 Add @(require_results) to core:math/rand 2023-05-22 11:59:44 +01:00
Jeroen van Rijn
a51943e27f Add core:math/rand.choice 2022-10-23 04:18:58 +02:00
gingerBill
4eba2bb8d9 Add _system_random for Darwin 2022-05-15 23:46:32 +01:00
gingerBill
2a58bceb56 Add rand.init_as_system to allow for system-level based random number generation 2022-05-15 23:43:20 +01:00
gingerBill
fdcf08410c Add Gompertz Distribution 2022-05-15 23:03:01 +01:00
gingerBill
5142955f00 Add more distributions 2022-05-15 22:58:39 +01:00
gingerBill
500150b12a Correct log normal 2022-05-15 22:52:11 +01:00
gingerBill
50ddd8dd26 Fix typo 2022-05-15 22:45:05 +01:00
gingerBill
6c6de2a07d Move distributions to a separate file 2022-05-15 22:20:25 +01:00
gingerBill
be2c7b5c9b Add numerous different random distribution procedures 2022-05-15 21:53:16 +01:00
gingerBill
df8bdac33f Initialize the global_rand with the intrinsics.read_cycle_counter() value 2022-02-03 00:31:36 +00:00
gingerBill
8c9505505a Add allocator parameter to rand.perm 2022-02-01 15:23:49 +00:00
gingerBill
3165b7cf95 Add rand.exp_float64 2022-01-27 16:09:33 +00:00
gingerBill
16786aac78 Correct int31_max etc 2022-01-27 12:33:34 +00:00
gingerBill
720884e0f1 Strip even more semicolons if followed by a } or ) on the same line 2021-08-31 23:47:57 +01:00
gingerBill
251da264ed Remove unneeded semicolons from the core library 2021-08-31 22:21:13 +01:00
Jeroen van Rijn
9c150381bf big: Add rand. 2021-08-11 20:59:51 +02:00
gingerBill
26ce40c188 Remove @(static) for global variables 2021-05-19 11:51:48 +01:00
gingerBill
fc4fdd588e Remove usage of do in core library 2020-09-23 17:17:14 +01:00
gingerBill
8f38b06c60 Add sanity conversion for rand.norm_float64 2020-09-10 15:42:07 +01:00
gingerBill
2dfa3a5df7 Fix typo 2020-09-07 14:40:36 +01:00
gingerBill
1064622ff7 Improve math/rand functionality 2020-09-07 14:38:01 +01:00
gingerBill
098684a6fe Add 128-bit random procedures to package math/rand 2019-11-10 18:47:16 +00:00
gingerBill
a29a6d9285 Fix typos in package linalg; Fix norm_float64 in package rand 2019-10-27 18:43:40 +00:00
gingerBill
40135cbc66 Add float64_range and float32_range to package math/rand 2019-04-28 20:35:14 +01:00
gingerBill
2347dca9d9 Improve package math/rand 2019-03-24 20:36:39 +00:00
gingerBill
5b6770f3d2 Parse directories to be packages 2018-05-21 20:47:52 +01:00