Skip to content

Latest commit

 

History

History

random

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Random

Standard library generic random functions.

Usage

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

random

Standard library generic random functions.

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

The namespace 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( '@stdlib/utils/keys' );
var ns = require( '@stdlib/random' );

console.log( getKeys( ns ) );