summary refs log tree commit diff stats
path: root/lib/pure/random.nim
Commit message (Expand)AuthorAgeFilesLines
* Add missing rand(var Rand, Ordinal) overload (#20124)Antonis Geralis2022-08-261-14/+32
* prevent cache thrashing (#20129)ringabout2022-08-021-1/+3
* [ORC] replace threadpool with createThread in the runnableExamples (#20106)ringabout2022-07-311-9/+16
* Improve rand(bool) (#20045)Antonis Geralis2022-07-181-2/+4
* Make `random.rand` work with `Ordinal` (#20043)Amjad Ben Hedhili2022-07-161-6/+9
* Fix initrand to avoid random number sequences overlapping (#18744)Tomohiro2021-09-021-11/+63
* std/random: fix overflow bugs; fixes #16360; fixes #16296; fixes #17670 (#18456)Timothee Cour2021-07-231-9/+23
* Add lent annotation to avoid extra copies in sample (#18404)Antonis Geralis2021-07-021-1/+1
* fix #17467 1st call to rand is now non-skewed; allow seed == 0 (#17468)Timothee Cour2021-05-111-57/+36
* CIs: attempt to use csources_v1 (#16282)Andreas Rumpf2021-04-211-2/+2
* Better error message for rand(153 .. 102) (#17031)Dominik Picheta2021-02-151-1/+1
* Improve documentation for random (#17015)konsumlamm2021-02-121-185/+168
* add system random to stdlib: std/sysrand (#16459)flywind2021-02-111-0/+1
* Add initRand() with seed based on time (#16953)hlaaftana2021-02-071-10/+35
* Fix broken links in docs (#16336)Elliot Waite2020-12-141-11/+17
* Revert "use generics in random (#16283)" (#16291)flywind2020-12-091-15/+33
* use generics in random (#16283)flywind2020-12-071-33/+15
* move tests to testament (#16101)flywind2020-11-241-54/+0
* Make default state public (#15763)Antonis Geralis2020-10-291-0/+6
* added normal variate function (#14725)b3liever2020-06-221-1/+42
* Remove deprecated stuff from stdlib (#14699)Miran2020-06-171-33/+1
* Error -> Defect for defects (#13908)Jacek Sieka2020-04-281-2/+2
* style fix: change 'JS' to 'js' to make it consistent (#13168)Miran2020-01-161-6/+6
* clean up deprecated stuff and unused imports in tests (#13059)Miran2020-01-071-1/+1
* allow random module to be used in standalone: (#12617)Judd2019-11-071-1/+1
* Fix many broken linksJjp1372019-10-221-1/+1
* [backport] fix type's case in random.nim (#12445)Miran2019-10-171-12/+12
* [backport] fix #12418, fix `random.randomize` on JS backend (#12432)Miran2019-10-151-1/+1
* [backport] run nimpretty on numbers stuffnarimiran2019-09-301-17/+17
* random: minor documentation updates (#11831)Jjp1372019-08-021-8/+42
* fix #11772, JS random seed was too large (#11820)Miran2019-07-251-1/+1
* [bugfix] fix #11450, random.initRand crashes in JS backend (#11522)Miran2019-06-171-4/+4
* Render deprecated pragmas (#8886)LemonBoy2019-06-031-18/+12
* Reallow float ranges in random moduleMamy André-Ratsimbazafy2019-05-081-4/+14
* Fix unexpected result of rand on a range, fixes #11015 (#11035)Jasper Jenkins2019-04-301-8/+14
* random: works for slices and enums, fixes #7698 (#10998)Miran2019-04-111-3/+3
* [random] add support for sets (#10532)WhiteDuke2019-02-251-0/+12
* randomize: added doAssert(seed!=0) to avoid invalid (non-random) behavior (#1...Timothee Cour2019-02-131-0/+1
* better docs: random (#10546)Jjp1372019-02-131-66/+423
* added proc rand for typedesc (#10259)Arne Döring2019-01-141-1/+5
* Resolve things raised in https://github.com/nim-lang/Nim/issues/10081 ? (#10084)c-blake2018-12-311-21/+20
* Revert sub-second randomize(). Fixes randomize for JS backend. (#10000)Dominik Picheta2018-12-271-2/+6
* Add ability to sample elements from openArray according to a weight array (#1...c-blake2018-12-231-2/+35
* updated tests to be executedArne Döring2018-11-231-0/+4
* stdlib: minor changes to avoid compiler warningsAndreas Rumpf2018-09-191-1/+1
* Add checks for random.rand() (#8431)Quelklef2018-07-301-2/+15
* Rename `Time.nanoseconds` to `nanosecond` (#7673)Oscar Nihlgård2018-04-251-1/+1
* Sub second time resolution (#6978)Oscar Nihlgård2018-04-131-2/+2
* Fixed crash in rand (#7103)Yuriy Glukhov2018-01-181-0/+5
* Better times module (#6552)GULPF2017-12-181-6/+2
ef='/ahoang/Nim/blame/lib/system/sysstr.nim?h=devel&id=96523cdd3e8ada367b804efbd47f4763a1269fa8'>^
5b5985240 ^

b5a96d28c ^
05121d84b ^
b5a96d28c ^
38b58239e ^



e25384db8 ^
c94647aec ^
5b5985240 ^

babd31360 ^
5b5985240 ^

c94647aec ^
b5a96d28c ^
06cd15663 ^
b5a96d28c ^
c94647aec ^
f5968c794 ^
405b86068
38b58239e ^

405b86068
92b8fac94 ^
cc4bb8926 ^

405b86068
ed915a309 ^
c87e1c96a ^



f5968c794 ^
c87e1c96a ^
64b048520 ^
c383e4d35 ^
fe99495a9 ^
c383e4d35 ^







405b86068
ed915a309 ^
e8376067e ^
8e5c1436a ^



e8376067e ^
8e5c1436a ^















f5968c794 ^
66bbf7518 ^




e8376067e ^
ff02ce2d5 ^

7c538b26a ^






4a1bda667 ^


7c538b26a ^
405b86068




dbf9117c5 ^
286e5958d ^
405b86068








dbf9117c5 ^
286e5958d ^
405b86068










dbf9117c5 ^
405b86068




ed915a309 ^
7c538b26a ^
38b58239e ^
65c08212d ^
405b86068

25b4d26e2 ^
4a1bda667 ^


fb35b855d ^
8b2a9401a ^
d87595112 ^
8b2a9401a ^
405b86068
8b2a9401a ^
7c538b26a ^


405b86068
8b2a9401a ^
405b86068



ed915a309 ^
ce01472ff ^
ce36b8efd ^
2bef08774 ^



c383e4d35 ^
405b86068

38b58239e ^
4a1bda667 ^

38b58239e ^

4a1bda667 ^
405b86068




4005f0d0e ^
405b86068
db4f617af ^
405b86068
db4f617af ^
405b86068

fb35b855d ^

e7bcadaf3 ^
4005f0d0e ^
e7bcadaf3 ^
fb35b855d ^
405b86068
4005f0d0e ^
493241574 ^


e7bcadaf3 ^
4005f0d0e ^
e7bcadaf3 ^
493241574 ^
c94647aec ^
ef1b547f3 ^






4a1bda667 ^




ef1b547f3 ^
4005f0d0e ^
e016c9253 ^
fb35b855d ^

e7bcadaf3 ^
4005f0d0e ^
e7bcadaf3 ^
fb35b855d ^

ee57bb3e3 ^
79f64d246 ^
6b3af6a5d ^
8cde6ba6b ^
65fdd641a ^
0fc5d3f13 ^
8cde6ba6b ^
ee57bb3e3 ^
67f37264b ^
657dca5c3 ^
b25044286 ^
657dca5c3 ^
34dbc5699 ^
67f37264b ^
0fc5d3f13 ^
fb35b855d ^
405b86068
ce36b8efd ^

1c80619ac ^
ce36b8efd ^
2bef08774 ^



ce36b8efd ^
4a1bda667 ^

























1c80619ac ^
4a1bda667 ^


325341866 ^









b542be1e7 ^
325341866 ^









b542be1e7 ^
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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363