'use strict';

var randu = require( '@stdlib/math/base/random/randu' );
var cdf = require( './../lib' );

var mu;
var x;
var y;
var i;

for ( i = 0; i < 100; i++ ) {
	x = randu() * 10.0;
	mu = randu() * 10.0;
	y = cdf( x, mu );
	console.log( 'x: %d, µ: %d, F(x;µ): %d', x, mu, y );
}

@@ -65,16 +65,74 @@
 ndu' );%0A
+var round = require( '@stdlib/math/base/special/round' );%0A
 var cdf 
@@ -156,16 +156,16 @@
 lib' );%0A
-
 %0Avar mu;
@@ -221,24 +221,31 @@
 ) %7B%0A%09x =
+ round(
  randu()
  * 10.0;
@@ -240,30 +240,37 @@
 du()
- * 
+*
 10.0
+ )
 ;%0A%09mu =
+ round(
  randu()
  * 1
@@ -269,15 +269,15 @@
 du()
- * 
+*
 10.0
+ )
 ;%0A%09y

Update example