Skip to content

Commit 14ca702

Browse files
authored
Apply suggestions from code review
Signed-off-by: Athan <[email protected]>
1 parent a78481d commit 14ca702

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/node_modules/@stdlib/stats/base/dnanmax/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ var bernoulli = require( '@stdlib/random/base/bernoulli' );
135135
var dnanmax = require( '@stdlib/stats/base/dnanmax' );
136136

137137
function rand() {
138-
if ( bernoulli( 0.2 ) ) {
138+
if ( bernoulli( 0.2 ) < 1 ) {
139139
return NaN;
140140
}
141141
return uniform( -50.0, 50.0 );

lib/node_modules/@stdlib/stats/base/dnanmax/examples/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ var bernoulli = require( '@stdlib/random/base/bernoulli' );
2424
var dnanmax = require( './../lib' );
2525

2626
function rand() {
27-
if ( bernoulli( 0.2 ) ) {
27+
if ( bernoulli( 0.2 ) < 1 ) {
2828
return NaN;
2929
}
3030
return uniform( -50.0, 50.0 );

0 commit comments

Comments
 (0)