summary refs log tree commit diff stats
path: root/tests/stdlib/trandom.nim
Commit message (Collapse)AuthorAgeFilesLines
* fixes #23915; std/random produces different results on c/js (#24003)ringabout2024-08-251-5/+10
| | | fixes #23915
* Replacement PR for https://github.com/nim-lang/Nim/pull/23779 that (#23793)c-blake2024-07-071-1/+1
| | | | | | | makes new hash the default, with an opt-out (& js-no-big-int) define. Also update changelog (& fix one typo). Only really expect the chronos hash-order sensitive test to fail until they merge that PR and tag a new release.
* fixes testament matrix doesn't work with other backends which left many JS ↵ringabout2024-05-141-1/+4
| | | | | | tests untested (#23592) Targets are not changes, which means the C binary is actually tested for JS backend
* fixes #22360; compare with the half of randMax (#22361)ringabout2023-08-021-0/+18
| | | | | * fixes #22360; compare with the half of randMax * add a test
* clean up SOME pending/xxx/issue link comments (#21826)metagn2023-05-111-16/+29
| | | | | * clean up SOME pending/xxx/issue link comments * great
* stdlib tests now check refc too (#21664)ringabout2023-04-211-1/+1
| | | | | | | | | | | * stdlib tests now check refc too * typo * fixes line numbers * disable cpp * do not touch
* int64/uint64 as bigint in JS (#21613)metagn2023-04-111-11/+8
| | | | | | | | | | | * int64/uint64 as bigint in JS * fix CI * convert to compile option * fix lie * smaller diff, changelog entry
* make more standard libraries work with `nimPreviewSlimSystem` (#20343)ringabout2022-09-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | * make more standard libraries work with `nimPreviewSlimSystem` * typo * part two * Delete specutils.nim * fixes more tests * more fixes * fixes tests * fixes three more tests * add formatfloat import * fix * last
* Fix initrand to avoid random number sequences overlapping (#18744)Tomohiro2021-09-021-4/+28
| | | | | | | | | | | | | | | | | | | | | | | * Fix initrand to avoid random number sequences overlapping * Minor fix * Fix compile error on js backend * Disable new test for js backend * Minor fix * tempfiles module uses random.initRand() * Remove unused module import from lib/std/tempfiles.nim * Initialize baseState in initRand() * Run tests/stdlib/trandom.nim from tests/test_nimscript.nims * baseState is initialized only with sysrand.urandom and quit if failed * Add comments
* std/random: fix overflow bugs; fixes #16360; fixes #16296; fixes #17670 (#18456)Timothee Cour2021-07-231-1/+62
|
* fix #17467 1st call to rand is now non-skewed; allow seed == 0 (#17468)Timothee Cour2021-05-111-4/+27
| | | | | | | | | | | | | | | * fix #17467 1st call to rand is now non-skewed; allow passing 0 as seed * changelog + fallback * document behavior for seed == 0 * address comments * _ * fix tests, disable kdtree * re-enable kdtree with -d:nimLegacyRandomInitRand
* Improve math module (#17019)konsumlamm2021-02-121-5/+105
| | | | | | | | | | | | | | | | | | | | | | | | | * Improve documentation for math Support empty input for cumsummed Use runnableExamples Move some examples to tests Add more tests * Update tests/stdlib/tmath.nim Move some tests to trandom.nim Move tests into main template where possible Add test for #17017 * Add more tests for gamma & lgamma Remove gamma(-1.0) example Small fixes/changes * Move more tests into template main() * Fix typos * Add edge case examples for copySign
* enable tests for random (#16297)flywind2020-12-101-34/+41
|
* move tests to testament (#16101)flywind2020-11-241-0/+59
* move tests to testament * minor * fix random * disable test random
' href='/akkartik/mu/commit/html/051scenario_test.mu.html?h=hlt&id=204dae921abff0c70e017215bb3c91fa6ca11aff'>204dae92 ^
805d58c6 ^
204dae92 ^




805d58c6 ^


204dae92 ^

805d58c6 ^
204dae92 ^




805d58c6 ^



204dae92 ^

805d58c6 ^
204dae92 ^




805d58c6 ^
204dae92 ^

805d58c6 ^
204dae92 ^




805d58c6 ^
204dae92 ^

805d58c6 ^
204dae92 ^




805d58c6 ^
204dae92 ^

805d58c6 ^
204dae92 ^

672e3e50 ^


a654e4ec ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131