'use strict';

var atan2 = require( './../lib' );

var x;
var y;
var i;

for ( i = 0; i < 100; i++ ) {
	x = Math.random() * 100;
	y = Math.random() * 100;
	console.log( 'x: %d, \t y: %d, \t atan2(y,x): %d',
		x.toFixed( 4 ),
		y.toFixed( 4 ),
		atan2( x, y ).toFixed( 4 )
	);
}

'use strict';

var atan2 = require( './../lib' );

var x;
var y;
var i;

for ( i = 0; i < 100; i++ ) {
	y = Math.random() * 100;
	x = Math.random() * 100;
	console.log( 'y: %d, \t x: %d, \t atan2(y,x): %d',
		y.toFixed( 4 ),
		x.toFixed( 4 ),
		atan2( y, x ).toFixed( 4 )
	);
}

Fix argument order in example code
Fix argument order in example code