'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 );
}

'use strict';

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

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

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

Update example