Skip to content

Commit 5f5bdb2

Browse files
Update lib/node_modules/@stdlib/stats/base/dists/triangular/variance/benchmark/benchmark.native.js
Co-authored-by: Karan Anand <[email protected]> Signed-off-by: Ahmed_Kashkoush <[email protected]>
1 parent 6332f9b commit 5f5bdb2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/node_modules/@stdlib/stats/base/dists/triangular/variance/benchmark/benchmark.native.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ bench( pkg+'::native', function benchmark( b ) {
4545
for ( i = 0; i < len; i++ ) {
4646
min[ i ] = uniform( 0.0, 10.0 );
4747
max[ i ] = uniform( min[ i ], min[ i ] + 10.0 );
48-
mode[ i ] = min[ i ] + ( uniform( 0.0, 1.0 ) * ( max[ i ] - min[ i ] ) );
48+
mode[ i ] = uniform( min[ i ], max[ i ] );
4949
}
5050

5151
b.tic();

0 commit comments

Comments
 (0)