Skip to content

Commit ab938e5

Browse files
fix: random number generation
Co-authored-by: Philipp Burckhardt <[email protected]> Signed-off-by: Shabareesh Shetty <[email protected]>
1 parent 8081eee commit ab938e5

File tree

1 file changed

+2
-2
lines changed
  • lib/node_modules/@stdlib/stats/base/dists/kumaraswamy/stdev/examples/c

1 file changed

+2
-2
lines changed

lib/node_modules/@stdlib/stats/base/dists/kumaraswamy/stdev/examples/c/example.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ int main( void ) {
3232
int i;
3333

3434
for ( i = 0; i < 25; i++ ) {
35-
a = random_uniform( 0.0, 10.0 ) - 5.0;
36-
b = random_uniform( 0.0, 10.0 ) - 5.0;
35+
a = random_uniform( -5.0, 5.0 );
36+
b = random_uniform( -5.0, 5.0 );
3737
y = stdlib_base_dists_kumaraswamy_stdev( a, b );
3838
printf( "a: %lf, b: %lf, Var(X;a,b): %lf\n", a, b, y );
3939
}

0 commit comments

Comments
 (0)