@stdlib/random-base 0.0.2 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/NOTICE +1 -1
- package/README.md +75 -47
- package/docs/types/index.d.ts +1 -1
- package/include/stdlib/random/base.h +1 -0
- package/package.json +8 -4
- package/CHANGELOG.md +0 -5
package/NOTICE
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Copyright (c) 2016-
|
|
1
|
+
Copyright (c) 2016-2022 The Stdlib Authors.
|
package/README.md
CHANGED
|
@@ -20,9 +20,9 @@ limitations under the License.
|
|
|
20
20
|
|
|
21
21
|
# Pseudorandom Number Generators
|
|
22
22
|
|
|
23
|
-
[![NPM version][npm-image]][npm-url] [![Build Status][test-image]][test-url] [![Coverage Status][coverage-image]][coverage-url] [![dependencies][dependencies-image]][dependencies-url]
|
|
23
|
+
[![NPM version][npm-image]][npm-url] [![Build Status][test-image]][test-url] [![Coverage Status][coverage-image]][coverage-url] <!-- [![dependencies][dependencies-image]][dependencies-url] -->
|
|
24
24
|
|
|
25
|
-
>
|
|
25
|
+
> Base (i.e., lower-level) pseudorandom number generators (PRNGs).
|
|
26
26
|
|
|
27
27
|
<section class="installation">
|
|
28
28
|
|
|
@@ -44,7 +44,7 @@ var random = require( '@stdlib/random-base' );
|
|
|
44
44
|
|
|
45
45
|
#### random
|
|
46
46
|
|
|
47
|
-
|
|
47
|
+
Namespace containing "base" (i.e., lower-level) pseudorandom number generators (PRNGs).
|
|
48
48
|
|
|
49
49
|
```javascript
|
|
50
50
|
var ns = random;
|
|
@@ -178,6 +178,16 @@ console.log( objectKeys( random ) );
|
|
|
178
178
|
|
|
179
179
|
<!-- /.examples -->
|
|
180
180
|
|
|
181
|
+
<!-- Section for related `stdlib` packages. Do not manually edit this section, as it is automatically populated. -->
|
|
182
|
+
|
|
183
|
+
<section class="related">
|
|
184
|
+
|
|
185
|
+
</section>
|
|
186
|
+
|
|
187
|
+
<!-- /.related -->
|
|
188
|
+
|
|
189
|
+
<!-- Section for all links. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->
|
|
190
|
+
|
|
181
191
|
|
|
182
192
|
<section class="main-repo" >
|
|
183
193
|
|
|
@@ -189,6 +199,10 @@ This package is part of [stdlib][stdlib], a standard library for JavaScript and
|
|
|
189
199
|
|
|
190
200
|
For more information on the project, filing bug reports and feature requests, and guidance on how to develop [stdlib][stdlib], see the main project [repository][stdlib].
|
|
191
201
|
|
|
202
|
+
#### Community
|
|
203
|
+
|
|
204
|
+
[![Chat][chat-image]][chat-url]
|
|
205
|
+
|
|
192
206
|
---
|
|
193
207
|
|
|
194
208
|
## License
|
|
@@ -198,7 +212,7 @@ See [LICENSE][stdlib-license].
|
|
|
198
212
|
|
|
199
213
|
## Copyright
|
|
200
214
|
|
|
201
|
-
Copyright © 2016-
|
|
215
|
+
Copyright © 2016-2022. The Stdlib [Authors][stdlib-authors].
|
|
202
216
|
|
|
203
217
|
</section>
|
|
204
218
|
|
|
@@ -217,9 +231,23 @@ Copyright © 2016-2021. The Stdlib [Authors][stdlib-authors].
|
|
|
217
231
|
[coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/random-base/main.svg
|
|
218
232
|
[coverage-url]: https://codecov.io/github/stdlib-js/random-base?branch=main
|
|
219
233
|
|
|
220
|
-
|
|
234
|
+
<!--
|
|
235
|
+
|
|
236
|
+
[dependencies-image]: https://img.shields.io/david/stdlib-js/random-base.svg
|
|
221
237
|
[dependencies-url]: https://david-dm.org/stdlib-js/random-base/main
|
|
222
238
|
|
|
239
|
+
-->
|
|
240
|
+
|
|
241
|
+
[umd]: https://github.com/umdjs/umd
|
|
242
|
+
[es-module]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules
|
|
243
|
+
|
|
244
|
+
[deno-url]: https://github.com/stdlib-js/random-base/tree/deno
|
|
245
|
+
[umd-url]: https://github.com/stdlib-js/random-base/tree/umd
|
|
246
|
+
[esm-url]: https://github.com/stdlib-js/random-base/tree/esm
|
|
247
|
+
|
|
248
|
+
[chat-image]: https://img.shields.io/gitter/room/stdlib-js/stdlib.svg
|
|
249
|
+
[chat-url]: https://gitter.im/stdlib-js/stdlib/
|
|
250
|
+
|
|
223
251
|
[stdlib]: https://github.com/stdlib-js/stdlib
|
|
224
252
|
|
|
225
253
|
[stdlib-authors]: https://github.com/stdlib-js/stdlib/graphs/contributors
|
|
@@ -228,89 +256,89 @@ Copyright © 2016-2021. The Stdlib [Authors][stdlib-authors].
|
|
|
228
256
|
|
|
229
257
|
<!-- <toc-links> -->
|
|
230
258
|
|
|
231
|
-
[@stdlib/random/base/arcsine]: https://
|
|
259
|
+
[@stdlib/random/base/arcsine]: https://www.npmjs.com/package/@stdlib/random-base-arcsine
|
|
232
260
|
|
|
233
|
-
[@stdlib/random/base/bernoulli]: https://
|
|
261
|
+
[@stdlib/random/base/bernoulli]: https://www.npmjs.com/package/@stdlib/random-base-bernoulli
|
|
234
262
|
|
|
235
|
-
[@stdlib/random/base/beta]: https://
|
|
263
|
+
[@stdlib/random/base/beta]: https://www.npmjs.com/package/@stdlib/random-base-beta
|
|
236
264
|
|
|
237
|
-
[@stdlib/random/base/betaprime]: https://
|
|
265
|
+
[@stdlib/random/base/betaprime]: https://www.npmjs.com/package/@stdlib/random-base-betaprime
|
|
238
266
|
|
|
239
|
-
[@stdlib/random/base/binomial]: https://
|
|
267
|
+
[@stdlib/random/base/binomial]: https://www.npmjs.com/package/@stdlib/random-base-binomial
|
|
240
268
|
|
|
241
|
-
[@stdlib/random/base/box-muller]: https://
|
|
269
|
+
[@stdlib/random/base/box-muller]: https://www.npmjs.com/package/@stdlib/random-base-box-muller
|
|
242
270
|
|
|
243
|
-
[@stdlib/random/base/cauchy]: https://
|
|
271
|
+
[@stdlib/random/base/cauchy]: https://www.npmjs.com/package/@stdlib/random-base-cauchy
|
|
244
272
|
|
|
245
|
-
[@stdlib/random/base/chi]: https://
|
|
273
|
+
[@stdlib/random/base/chi]: https://www.npmjs.com/package/@stdlib/random-base-chi
|
|
246
274
|
|
|
247
|
-
[@stdlib/random/base/chisquare]: https://
|
|
275
|
+
[@stdlib/random/base/chisquare]: https://www.npmjs.com/package/@stdlib/random-base-chisquare
|
|
248
276
|
|
|
249
|
-
[@stdlib/random/base/cosine]: https://
|
|
277
|
+
[@stdlib/random/base/cosine]: https://www.npmjs.com/package/@stdlib/random-base-cosine
|
|
250
278
|
|
|
251
|
-
[@stdlib/random/base/discrete-uniform]: https://
|
|
279
|
+
[@stdlib/random/base/discrete-uniform]: https://www.npmjs.com/package/@stdlib/random-base-discrete-uniform
|
|
252
280
|
|
|
253
|
-
[@stdlib/random/base/erlang]: https://
|
|
281
|
+
[@stdlib/random/base/erlang]: https://www.npmjs.com/package/@stdlib/random-base-erlang
|
|
254
282
|
|
|
255
|
-
[@stdlib/random/base/exponential]: https://
|
|
283
|
+
[@stdlib/random/base/exponential]: https://www.npmjs.com/package/@stdlib/random-base-exponential
|
|
256
284
|
|
|
257
|
-
[@stdlib/random/base/f]: https://
|
|
285
|
+
[@stdlib/random/base/f]: https://www.npmjs.com/package/@stdlib/random-base-f
|
|
258
286
|
|
|
259
|
-
[@stdlib/random/base/frechet]: https://
|
|
287
|
+
[@stdlib/random/base/frechet]: https://www.npmjs.com/package/@stdlib/random-base-frechet
|
|
260
288
|
|
|
261
|
-
[@stdlib/random/base/gamma]: https://
|
|
289
|
+
[@stdlib/random/base/gamma]: https://www.npmjs.com/package/@stdlib/random-base-gamma
|
|
262
290
|
|
|
263
|
-
[@stdlib/random/base/geometric]: https://
|
|
291
|
+
[@stdlib/random/base/geometric]: https://www.npmjs.com/package/@stdlib/random-base-geometric
|
|
264
292
|
|
|
265
|
-
[@stdlib/random/base/gumbel]: https://
|
|
293
|
+
[@stdlib/random/base/gumbel]: https://www.npmjs.com/package/@stdlib/random-base-gumbel
|
|
266
294
|
|
|
267
|
-
[@stdlib/random/base/hypergeometric]: https://
|
|
295
|
+
[@stdlib/random/base/hypergeometric]: https://www.npmjs.com/package/@stdlib/random-base-hypergeometric
|
|
268
296
|
|
|
269
|
-
[@stdlib/random/base/improved-ziggurat]: https://
|
|
297
|
+
[@stdlib/random/base/improved-ziggurat]: https://www.npmjs.com/package/@stdlib/random-base-improved-ziggurat
|
|
270
298
|
|
|
271
|
-
[@stdlib/random/base/invgamma]: https://
|
|
299
|
+
[@stdlib/random/base/invgamma]: https://www.npmjs.com/package/@stdlib/random-base-invgamma
|
|
272
300
|
|
|
273
|
-
[@stdlib/random/base/kumaraswamy]: https://
|
|
301
|
+
[@stdlib/random/base/kumaraswamy]: https://www.npmjs.com/package/@stdlib/random-base-kumaraswamy
|
|
274
302
|
|
|
275
|
-
[@stdlib/random/base/laplace]: https://
|
|
303
|
+
[@stdlib/random/base/laplace]: https://www.npmjs.com/package/@stdlib/random-base-laplace
|
|
276
304
|
|
|
277
|
-
[@stdlib/random/base/levy]: https://
|
|
305
|
+
[@stdlib/random/base/levy]: https://www.npmjs.com/package/@stdlib/random-base-levy
|
|
278
306
|
|
|
279
|
-
[@stdlib/random/base/logistic]: https://
|
|
307
|
+
[@stdlib/random/base/logistic]: https://www.npmjs.com/package/@stdlib/random-base-logistic
|
|
280
308
|
|
|
281
|
-
[@stdlib/random/base/lognormal]: https://
|
|
309
|
+
[@stdlib/random/base/lognormal]: https://www.npmjs.com/package/@stdlib/random-base-lognormal
|
|
282
310
|
|
|
283
|
-
[@stdlib/random/base/minstd-shuffle]: https://
|
|
311
|
+
[@stdlib/random/base/minstd-shuffle]: https://www.npmjs.com/package/@stdlib/random-base-minstd-shuffle
|
|
284
312
|
|
|
285
|
-
[@stdlib/random/base/minstd]: https://
|
|
313
|
+
[@stdlib/random/base/minstd]: https://www.npmjs.com/package/@stdlib/random-base-minstd
|
|
286
314
|
|
|
287
|
-
[@stdlib/random/base/mt19937]: https://
|
|
315
|
+
[@stdlib/random/base/mt19937]: https://www.npmjs.com/package/@stdlib/random-base-mt19937
|
|
288
316
|
|
|
289
|
-
[@stdlib/random/base/negative-binomial]: https://
|
|
317
|
+
[@stdlib/random/base/negative-binomial]: https://www.npmjs.com/package/@stdlib/random-base-negative-binomial
|
|
290
318
|
|
|
291
|
-
[@stdlib/random/base/normal]: https://
|
|
319
|
+
[@stdlib/random/base/normal]: https://www.npmjs.com/package/@stdlib/random-base-normal
|
|
292
320
|
|
|
293
|
-
[@stdlib/random/base/pareto-type1]: https://
|
|
321
|
+
[@stdlib/random/base/pareto-type1]: https://www.npmjs.com/package/@stdlib/random-base-pareto-type1
|
|
294
322
|
|
|
295
|
-
[@stdlib/random/base/poisson]: https://
|
|
323
|
+
[@stdlib/random/base/poisson]: https://www.npmjs.com/package/@stdlib/random-base-poisson
|
|
296
324
|
|
|
297
|
-
[@stdlib/random/base/randi]: https://
|
|
325
|
+
[@stdlib/random/base/randi]: https://www.npmjs.com/package/@stdlib/random-base-randi
|
|
298
326
|
|
|
299
|
-
[@stdlib/random/base/randn]: https://
|
|
327
|
+
[@stdlib/random/base/randn]: https://www.npmjs.com/package/@stdlib/random-base-randn
|
|
300
328
|
|
|
301
|
-
[@stdlib/random/base/randu]: https://
|
|
329
|
+
[@stdlib/random/base/randu]: https://www.npmjs.com/package/@stdlib/random-base-randu
|
|
302
330
|
|
|
303
|
-
[@stdlib/random/base/rayleigh]: https://
|
|
331
|
+
[@stdlib/random/base/rayleigh]: https://www.npmjs.com/package/@stdlib/random-base-rayleigh
|
|
304
332
|
|
|
305
|
-
[@stdlib/random/base/reviver]: https://
|
|
333
|
+
[@stdlib/random/base/reviver]: https://www.npmjs.com/package/@stdlib/random-base-reviver
|
|
306
334
|
|
|
307
|
-
[@stdlib/random/base/t]: https://
|
|
335
|
+
[@stdlib/random/base/t]: https://www.npmjs.com/package/@stdlib/random-base-t
|
|
308
336
|
|
|
309
|
-
[@stdlib/random/base/triangular]: https://
|
|
337
|
+
[@stdlib/random/base/triangular]: https://www.npmjs.com/package/@stdlib/random-base-triangular
|
|
310
338
|
|
|
311
|
-
[@stdlib/random/base/uniform]: https://
|
|
339
|
+
[@stdlib/random/base/uniform]: https://www.npmjs.com/package/@stdlib/random-base-uniform
|
|
312
340
|
|
|
313
|
-
[@stdlib/random/base/weibull]: https://
|
|
341
|
+
[@stdlib/random/base/weibull]: https://www.npmjs.com/package/@stdlib/random-base-weibull
|
|
314
342
|
|
|
315
343
|
<!-- </toc-links> -->
|
|
316
344
|
|
package/docs/types/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stdlib/random-base",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.0.6",
|
|
4
|
+
"description": "Base pseudorandom number generators.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "The Stdlib Authors",
|
|
@@ -15,8 +15,12 @@
|
|
|
15
15
|
],
|
|
16
16
|
"main": "./lib",
|
|
17
17
|
"directories": {
|
|
18
|
+
"benchmark": "./benchmark",
|
|
19
|
+
"doc": "./docs",
|
|
18
20
|
"example": "./examples",
|
|
21
|
+
"include": "./include",
|
|
19
22
|
"lib": "./lib",
|
|
23
|
+
"src": "./src",
|
|
20
24
|
"test": "./test"
|
|
21
25
|
},
|
|
22
26
|
"types": "./docs/types",
|
|
@@ -26,7 +30,7 @@
|
|
|
26
30
|
"examples": "make examples",
|
|
27
31
|
"benchmark": "make benchmark"
|
|
28
32
|
},
|
|
29
|
-
"homepage": "https://
|
|
33
|
+
"homepage": "https://stdlib.io",
|
|
30
34
|
"repository": {
|
|
31
35
|
"type": "git",
|
|
32
36
|
"url": "git://github.com/stdlib-js/random-base.git"
|
|
@@ -122,6 +126,7 @@
|
|
|
122
126
|
"@stdlib/math-base-assert-is-nonnegative-integer": "^0.0.x",
|
|
123
127
|
"@stdlib/math-base-assert-is-positive-integer": "^0.0.x",
|
|
124
128
|
"@stdlib/math-base-assert-is-probability": "^0.0.x",
|
|
129
|
+
"@stdlib/math-base-ops-umul": "^0.0.x",
|
|
125
130
|
"@stdlib/math-base-special-abs": "^0.0.x",
|
|
126
131
|
"@stdlib/math-base-special-ceil": "^0.0.x",
|
|
127
132
|
"@stdlib/math-base-special-cos": "^0.0.x",
|
|
@@ -137,7 +142,6 @@
|
|
|
137
142
|
"@stdlib/math-base-special-sin": "^0.0.x",
|
|
138
143
|
"@stdlib/math-base-special-sqrt": "^0.0.x",
|
|
139
144
|
"@stdlib/math-base-special-tan": "^0.0.x",
|
|
140
|
-
"@stdlib/math-base-special-uimul": "^0.0.x",
|
|
141
145
|
"@stdlib/process-env": "^0.0.x",
|
|
142
146
|
"@stdlib/stats-base-dists-cosine-quantile": "^0.0.x",
|
|
143
147
|
"@stdlib/stats-base-dists-normal-quantile": "^0.0.x",
|