Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ import minstd = require( './index' );
minstd.factory( { 'state': null } ); // $ExpectError
minstd.factory( { 'state': [] } ); // $ExpectError
minstd.factory( { 'state': {} } ); // $ExpectError
minstd.factory( { 'state': true ); // $ExpectError
minstd.factory( { 'state': true } ); // $ExpectError
minstd.factory( { 'state': ( x: number ): number => x } ); // $ExpectError
}

Expand Down
3 changes: 0 additions & 3 deletions lib/node_modules/@stdlib/random/base/minstd/lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,18 +75,15 @@ var randint32 = require( './rand_int32.js' );
*
* The values for \\( a \\), \\( c \\), and \\( m \\) are taken from Park and Miller, "Random Number Generators: Good Ones Are Hard To Find". Park's and Miller's article is also the basis for a recipe in the second edition of _Numerical Recipes in C_.
*
*
* ## Notes
*
* - The generator has a period of approximately \\(2.1\mbox{e}9\\) (see [Numerical Recipes in C, 2nd Edition](#references), p. 279).
*
*
* ## References
*
* - Park, S. K., and K. W. Miller. 1988. "Random Number Generators: Good Ones Are Hard to Find." _Communications of the ACM_ 31 (10). New York, NY, USA: ACM: 1192–1201. doi:[10.1145/63039.63042](http://dx.doi.org/10.1145/63039.63042).
* - Press, William H., Brian P. Flannery, Saul A. Teukolsky, and William T. Vetterling. 1992. _Numerical Recipes in C: The Art of Scientific Computing, Second Edition_. Cambridge University Press.
*
*
* @function minstd
* @type {PRNG}
* @returns {PositiveInteger} pseudorandom integer
Expand Down
76 changes: 38 additions & 38 deletions lib/node_modules/@stdlib/random/base/minstd/manifest.json
Original file line number Diff line number Diff line change
@@ -1,40 +1,40 @@
{
"options": {},
"fields": [
{
"field": "src",
"resolve": true,
"relative": true
},
{
"field": "include",
"resolve": true,
"relative": true
},
{
"field": "libraries",
"resolve": false,
"relative": false
},
{
"field": "libpath",
"resolve": true,
"relative": false
}
],
"confs": [
{
"src": [
"./src/main.c"
],
"include": [
"./include"
],
"libraries": [],
"libpath": [],
"dependencies": [
"@stdlib/random/base/shared"
]
}
]
"options": {},
"fields": [
{
"field": "src",
"resolve": true,
"relative": true
},
{
"field": "include",
"resolve": true,
"relative": true
},
{
"field": "libraries",
"resolve": false,
"relative": false
},
{
"field": "libpath",
"resolve": true,
"relative": false
}
],
"confs": [
{
"src": [
"./src/main.c"
],
"include": [
"./include"
],
"libraries": [],
"libpath": [],
"dependencies": [
"@stdlib/random/base/shared"
]
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ var Int32Array = require( '@stdlib/array/int32' );
var kstest = require( '@stdlib/stats/kstest' );
var gcopy = require( '@stdlib/blas/base/gcopy' );
var typedarray2json = require( '@stdlib/array/to-json' );
var zeros = require( '@stdlib/array/base/zeros' );
var factory = require( './../lib/factory.js' );


Expand Down Expand Up @@ -1094,7 +1095,7 @@ tape( 'the `normalized` method returns pseudorandom numbers drawn from a uniform

threshold = 0.10;

x = new Array( 1e3 );
x = zeros( 1e3 );
N = 500;

count = -1;
Expand Down