'use strict';

// MODULES //

var factory = require( './factory.js' );


// CAUCHY PRNG //

/**
* Returns pseudorandom number drawn from a Cauchy distribution.
*
* @function cauchy
* @type {Function}
* @param {number} x0 - location parameter
* @param {PositiveNumber} gamma - scale parameter
* @throws {TypeError} x0 argument must be a number primitive
* @throws {TypeError} gamma argument must be a positive number
* @returns {number} pseudorandom number
*
* @example
* var v = cauchy2( 0.0, 2.0 );
* // returns <number>
*/
var cauchy = factory();


// EXPORTS //

module.exports = cauchy;

'use strict';

// MODULES //

var factory = require( './factory.js' );


// CAUCHY PRNG //

/**
* Returns pseudorandom number drawn from a Cauchy distribution.
*
* @function cauchy
* @type {Function}
* @param {number} x0 - location parameter
* @param {PositiveNumber} gamma - scale parameter
* @throws {TypeError} x0 argument must be a number primitive
* @throws {TypeError} gamma argument must be a positive number
* @returns {number} pseudorandom number
*
* @example
* var v = cauchy( 0.0, 2.0 );
* // returns <number>
*/
var cauchy = factory();


// EXPORTS //

module.exports = cauchy;

Fix example code