'use strict';

// MODULES //

var baseDist = require( './base.dist.js' );
var baseRandom = require( './base.random.js' );
var baseSpecial = require( './base.special.js' );
var baseTools = require( './base.tools.js' );
var baseUtils = require( './base.utils.js' );
var genericRandom = require( './generics.random.js' );
var genericStats = require( './generics.statistics.js' );
var genericUtils = require( './generics.utils.js' );


// MAIN //

/**
* Assigns modules to a namespace.
*
* @private
* @param {Object} ns - namespace
* @returns {Object} input namespace
*
* @example
* var ns = {};
* assign( ns );
* // ns => {...}
*/
function assign( ns ) {
	baseDist( ns );
	baseRandom( ns );
	baseSpecial( ns );
	baseTools( ns );
	baseUtils( ns );

	genericRandom( ns );
	genericUtils( ns );
	genericStats( ns );

	return ns;
} // end FUNCTION assign()


// EXPORTS //

module.exports = assign;

'use strict';

// MODULES //

var baseDist = require( './base.dist.js' );
var baseRandom = require( './base.random.js' );
var baseSpecial = require( './base.special.js' );
var baseTools = require( './base.tools.js' );
var baseUtils = require( './base.utils.js' );
var genericRandom = require( './generics.random.js' );
var genericStats = require( './generics.statistics.js' );
var genericUtils = require( './generics.utils.js' );


// MAIN //

/**
* Assigns modules to a namespace.
*
* @private
* @param {Object} ns - namespace
* @returns {Object} input namespace
*
* @example
* var ns = {};
* assign( ns );
* // ns => {...}
*/
function assign( ns ) {
	baseDist( ns );
	baseRandom( ns );
	baseSpecial( ns );
	baseTools( ns );

	ns.base = {};
	baseUtils( ns.base );

	genericRandom( ns );
	genericUtils( ns );
	genericStats( ns );

	return ns;
} // end FUNCTION assign()


// EXPORTS //

module.exports = assign;

Attach base math utils to sub-namespace
Attach base math utils to sub-namespace
