Standard library generic random functions.
var random = require( '@stdlib/random' );
Standard library generic random functions.
var rand = random;
// returns {...}
The namespace exports the following functions to sample and shuffle elements from an array:
sample( x[, options] )
: sample elements from an array-like object.shuffle( arr[, options] )
: shuffle elements of an array-like object.
It also contains the following sub-namespaces:
var objectKeys = require( '@stdlib/utils/keys' );
var ns = require( '@stdlib/random' );
console.log( objectKeys( ns ) );