'use strict';

/**
* Return a random permutation of elements from an array-like object.
*
* @module @stdlib/math/generics/random/shuffle
*
* @example
* var shuffle = require( '@stdlib/math/generics/random/shuffle' );
*
* var data = [ 1, 2, 3 ];
* var out = shuffle( data );
* // returns e.g. [ 3, 1, 2 ]
*
* out = shuffle( data, {
*     'copy': 'none'
* })
*
* var bool = ( data === out );
* // returns true
*/

// MODULES //

var setReadOnly = require( '@stdlib/utils/define-read-only-property' );
var shuffle = require( './shuffle.js' );
var factory = require( './factory.js' );


// MAIN //

setReadOnly( shuffle, 'factory', factory );


// EXPORTS //

module.exports = shuffle;

'use strict';

/**
* Return a random permutation of elements from an array-like object.
*
* @module @stdlib/math/generics/random/shuffle
*
* @example
* var shuffle = require( '@stdlib/math/generics/random/shuffle' );
*
* var data = [ 1, 2, 3 ];
* var out = shuffle( data );
* // e.g., returns [ 3, 1, 2 ]
*
* out = shuffle( data, {
*     'copy': 'none'
* });
*
* var bool = ( data === out );
* // returns true
*/

// MODULES //

var setReadOnly = require( '@stdlib/utils/define-read-only-property' );
var shuffle = require( './shuffle.js' );
var factory = require( './factory.js' );


// MAIN //

setReadOnly( shuffle, 'factory', factory );


// EXPORTS //

module.exports = shuffle;

Update return annotation and add missing semicolon
Update return annotation and add missing semicolon
