@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 CHANGED
@@ -1 +1 @@
1
- Copyright (c) 2016-2021 The Stdlib Authors.
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
- > Standard library base pseudorandom number generators (PRNGs).
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
- Standard library base pseudorandom number generators (PRNGs).
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 &copy; 2016-2021. The Stdlib [Authors][stdlib-authors].
215
+ Copyright &copy; 2016-2022. The Stdlib [Authors][stdlib-authors].
202
216
 
203
217
  </section>
204
218
 
@@ -217,9 +231,23 @@ Copyright &copy; 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
- [dependencies-image]: https://img.shields.io/david/stdlib-js/random-base
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 &copy; 2016-2021. The Stdlib [Authors][stdlib-authors].
228
256
 
229
257
  <!-- <toc-links> -->
230
258
 
231
- [@stdlib/random/base/arcsine]: https://github.com/stdlib-js/random-base-arcsine
259
+ [@stdlib/random/base/arcsine]: https://www.npmjs.com/package/@stdlib/random-base-arcsine
232
260
 
233
- [@stdlib/random/base/bernoulli]: https://github.com/stdlib-js/random-base-bernoulli
261
+ [@stdlib/random/base/bernoulli]: https://www.npmjs.com/package/@stdlib/random-base-bernoulli
234
262
 
235
- [@stdlib/random/base/beta]: https://github.com/stdlib-js/random-base-beta
263
+ [@stdlib/random/base/beta]: https://www.npmjs.com/package/@stdlib/random-base-beta
236
264
 
237
- [@stdlib/random/base/betaprime]: https://github.com/stdlib-js/random-base-betaprime
265
+ [@stdlib/random/base/betaprime]: https://www.npmjs.com/package/@stdlib/random-base-betaprime
238
266
 
239
- [@stdlib/random/base/binomial]: https://github.com/stdlib-js/random-base-binomial
267
+ [@stdlib/random/base/binomial]: https://www.npmjs.com/package/@stdlib/random-base-binomial
240
268
 
241
- [@stdlib/random/base/box-muller]: https://github.com/stdlib-js/random-base-box-muller
269
+ [@stdlib/random/base/box-muller]: https://www.npmjs.com/package/@stdlib/random-base-box-muller
242
270
 
243
- [@stdlib/random/base/cauchy]: https://github.com/stdlib-js/random-base-cauchy
271
+ [@stdlib/random/base/cauchy]: https://www.npmjs.com/package/@stdlib/random-base-cauchy
244
272
 
245
- [@stdlib/random/base/chi]: https://github.com/stdlib-js/random-base-chi
273
+ [@stdlib/random/base/chi]: https://www.npmjs.com/package/@stdlib/random-base-chi
246
274
 
247
- [@stdlib/random/base/chisquare]: https://github.com/stdlib-js/random-base-chisquare
275
+ [@stdlib/random/base/chisquare]: https://www.npmjs.com/package/@stdlib/random-base-chisquare
248
276
 
249
- [@stdlib/random/base/cosine]: https://github.com/stdlib-js/random-base-cosine
277
+ [@stdlib/random/base/cosine]: https://www.npmjs.com/package/@stdlib/random-base-cosine
250
278
 
251
- [@stdlib/random/base/discrete-uniform]: https://github.com/stdlib-js/random-base-discrete-uniform
279
+ [@stdlib/random/base/discrete-uniform]: https://www.npmjs.com/package/@stdlib/random-base-discrete-uniform
252
280
 
253
- [@stdlib/random/base/erlang]: https://github.com/stdlib-js/random-base-erlang
281
+ [@stdlib/random/base/erlang]: https://www.npmjs.com/package/@stdlib/random-base-erlang
254
282
 
255
- [@stdlib/random/base/exponential]: https://github.com/stdlib-js/random-base-exponential
283
+ [@stdlib/random/base/exponential]: https://www.npmjs.com/package/@stdlib/random-base-exponential
256
284
 
257
- [@stdlib/random/base/f]: https://github.com/stdlib-js/random-base-f
285
+ [@stdlib/random/base/f]: https://www.npmjs.com/package/@stdlib/random-base-f
258
286
 
259
- [@stdlib/random/base/frechet]: https://github.com/stdlib-js/random-base-frechet
287
+ [@stdlib/random/base/frechet]: https://www.npmjs.com/package/@stdlib/random-base-frechet
260
288
 
261
- [@stdlib/random/base/gamma]: https://github.com/stdlib-js/random-base-gamma
289
+ [@stdlib/random/base/gamma]: https://www.npmjs.com/package/@stdlib/random-base-gamma
262
290
 
263
- [@stdlib/random/base/geometric]: https://github.com/stdlib-js/random-base-geometric
291
+ [@stdlib/random/base/geometric]: https://www.npmjs.com/package/@stdlib/random-base-geometric
264
292
 
265
- [@stdlib/random/base/gumbel]: https://github.com/stdlib-js/random-base-gumbel
293
+ [@stdlib/random/base/gumbel]: https://www.npmjs.com/package/@stdlib/random-base-gumbel
266
294
 
267
- [@stdlib/random/base/hypergeometric]: https://github.com/stdlib-js/random-base-hypergeometric
295
+ [@stdlib/random/base/hypergeometric]: https://www.npmjs.com/package/@stdlib/random-base-hypergeometric
268
296
 
269
- [@stdlib/random/base/improved-ziggurat]: https://github.com/stdlib-js/random-base-improved-ziggurat
297
+ [@stdlib/random/base/improved-ziggurat]: https://www.npmjs.com/package/@stdlib/random-base-improved-ziggurat
270
298
 
271
- [@stdlib/random/base/invgamma]: https://github.com/stdlib-js/random-base-invgamma
299
+ [@stdlib/random/base/invgamma]: https://www.npmjs.com/package/@stdlib/random-base-invgamma
272
300
 
273
- [@stdlib/random/base/kumaraswamy]: https://github.com/stdlib-js/random-base-kumaraswamy
301
+ [@stdlib/random/base/kumaraswamy]: https://www.npmjs.com/package/@stdlib/random-base-kumaraswamy
274
302
 
275
- [@stdlib/random/base/laplace]: https://github.com/stdlib-js/random-base-laplace
303
+ [@stdlib/random/base/laplace]: https://www.npmjs.com/package/@stdlib/random-base-laplace
276
304
 
277
- [@stdlib/random/base/levy]: https://github.com/stdlib-js/random-base-levy
305
+ [@stdlib/random/base/levy]: https://www.npmjs.com/package/@stdlib/random-base-levy
278
306
 
279
- [@stdlib/random/base/logistic]: https://github.com/stdlib-js/random-base-logistic
307
+ [@stdlib/random/base/logistic]: https://www.npmjs.com/package/@stdlib/random-base-logistic
280
308
 
281
- [@stdlib/random/base/lognormal]: https://github.com/stdlib-js/random-base-lognormal
309
+ [@stdlib/random/base/lognormal]: https://www.npmjs.com/package/@stdlib/random-base-lognormal
282
310
 
283
- [@stdlib/random/base/minstd-shuffle]: https://github.com/stdlib-js/random-base-minstd-shuffle
311
+ [@stdlib/random/base/minstd-shuffle]: https://www.npmjs.com/package/@stdlib/random-base-minstd-shuffle
284
312
 
285
- [@stdlib/random/base/minstd]: https://github.com/stdlib-js/random-base-minstd
313
+ [@stdlib/random/base/minstd]: https://www.npmjs.com/package/@stdlib/random-base-minstd
286
314
 
287
- [@stdlib/random/base/mt19937]: https://github.com/stdlib-js/random-base-mt19937
315
+ [@stdlib/random/base/mt19937]: https://www.npmjs.com/package/@stdlib/random-base-mt19937
288
316
 
289
- [@stdlib/random/base/negative-binomial]: https://github.com/stdlib-js/random-base-negative-binomial
317
+ [@stdlib/random/base/negative-binomial]: https://www.npmjs.com/package/@stdlib/random-base-negative-binomial
290
318
 
291
- [@stdlib/random/base/normal]: https://github.com/stdlib-js/random-base-normal
319
+ [@stdlib/random/base/normal]: https://www.npmjs.com/package/@stdlib/random-base-normal
292
320
 
293
- [@stdlib/random/base/pareto-type1]: https://github.com/stdlib-js/random-base-pareto-type1
321
+ [@stdlib/random/base/pareto-type1]: https://www.npmjs.com/package/@stdlib/random-base-pareto-type1
294
322
 
295
- [@stdlib/random/base/poisson]: https://github.com/stdlib-js/random-base-poisson
323
+ [@stdlib/random/base/poisson]: https://www.npmjs.com/package/@stdlib/random-base-poisson
296
324
 
297
- [@stdlib/random/base/randi]: https://github.com/stdlib-js/random-base-randi
325
+ [@stdlib/random/base/randi]: https://www.npmjs.com/package/@stdlib/random-base-randi
298
326
 
299
- [@stdlib/random/base/randn]: https://github.com/stdlib-js/random-base-randn
327
+ [@stdlib/random/base/randn]: https://www.npmjs.com/package/@stdlib/random-base-randn
300
328
 
301
- [@stdlib/random/base/randu]: https://github.com/stdlib-js/random-base-randu
329
+ [@stdlib/random/base/randu]: https://www.npmjs.com/package/@stdlib/random-base-randu
302
330
 
303
- [@stdlib/random/base/rayleigh]: https://github.com/stdlib-js/random-base-rayleigh
331
+ [@stdlib/random/base/rayleigh]: https://www.npmjs.com/package/@stdlib/random-base-rayleigh
304
332
 
305
- [@stdlib/random/base/reviver]: https://github.com/stdlib-js/random-base-reviver
333
+ [@stdlib/random/base/reviver]: https://www.npmjs.com/package/@stdlib/random-base-reviver
306
334
 
307
- [@stdlib/random/base/t]: https://github.com/stdlib-js/random-base-t
335
+ [@stdlib/random/base/t]: https://www.npmjs.com/package/@stdlib/random-base-t
308
336
 
309
- [@stdlib/random/base/triangular]: https://github.com/stdlib-js/random-base-triangular
337
+ [@stdlib/random/base/triangular]: https://www.npmjs.com/package/@stdlib/random-base-triangular
310
338
 
311
- [@stdlib/random/base/uniform]: https://github.com/stdlib-js/random-base-uniform
339
+ [@stdlib/random/base/uniform]: https://www.npmjs.com/package/@stdlib/random-base-uniform
312
340
 
313
- [@stdlib/random/base/weibull]: https://github.com/stdlib-js/random-base-weibull
341
+ [@stdlib/random/base/weibull]: https://www.npmjs.com/package/@stdlib/random-base-weibull
314
342
 
315
343
  <!-- </toc-links> -->
316
344
 
@@ -1036,7 +1036,7 @@ interface Namespace {
1036
1036
  }
1037
1037
 
1038
1038
  /**
1039
- * Standard library base pseudorandom number generators.
1039
+ * Base pseudorandom number generators.
1040
1040
  */
1041
1041
  declare var ns: Namespace;
1042
1042
 
@@ -19,6 +19,7 @@
19
19
  #ifndef STDLIB_RANDOM_BASE_H
20
20
  #define STDLIB_RANDOM_BASE_H
21
21
 
22
+ #include <stdlib.h>
22
23
  #include <stdint.h>
23
24
 
24
25
  /*
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stdlib/random-base",
3
- "version": "0.0.2",
4
- "description": "Standard library base pseudorandom number generators.",
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://github.com/stdlib-js/stdlib",
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",
package/CHANGELOG.md DELETED
@@ -1,5 +0,0 @@
1
- # CHANGELOG
2
-
3
- > Package changelog.
4
-
5
- See [GitHub Releases](https://github.com/stdlib-js/random-base/releases) for the changelog.