We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa6e636 commit 8c7dff3Copy full SHA for 8c7dff3
lib/node_modules/@stdlib/random/base/uniform/src/main.c
@@ -62,10 +62,10 @@
62
* stdlib_base_random_randu_free( randu, -10.0, 10.0 );
63
*/
64
double stdlib_base_random_uniform( struct BasePRNGObject *randu, const double a, const double b ) {
65
+ double r;
66
if ( randu == NULL ) {
67
return 0.0 / 0.0; // NaN
68
}
- double r;
69
randu->prng->normalized( randu, &r );
70
return ( b*r ) + ( (1.0-r)*a );
71
0 commit comments