'use strict';

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

var v;
var i;
var n;
var p;

for ( i = 0; i < 10; i++ ) {
	n = round( randu() * 100 );
	p = randu();
	v = mean( n, p );
	console.log( 'n: %d, p: %d, E(X;n,p): %d',
		n,
		p.toFixed( 4 ),
		v.toFixed( 4 )
	);
}


@@ -241,16 +241,18 @@
 () * 100
+.0
  );%0A%09p =
@@ -327,16 +327,12 @@
 %25d',
-%0A%09%09n,%0A%09%09
+ n, 
 p.to
@@ -346,11 +346,9 @@
 4 ),
-%0A%09%09
+ 
 v.to
@@ -357,16 +357,15 @@
 xed( 4 )
-%0A%09
+ 
 );%0A%7D%0A%0A

Add decimal