Skip to content

Latest commit

 

History

History
104 lines (60 loc) · 2.46 KB

File metadata and controls

104 lines (60 loc) · 2.46 KB

Random

Standard library generic random functions.

Usage

var random = require( '@stdlib/random' );

random

Standard library generic random functions.

var rand = random;
// returns {...}

The namespaces exports the following functions to sample and shuffle elements from an array:

It also contains the following sub-namespaces:

  • base: standard library base pseudorandom number generators (PRNGs).

Examples

var getKeys = require( 'object-keys' ).shim();
var ns = require( '@stdlib/random' );

console.log( getKeys( ns ) );