@stdlib/random-array-tools
v0.2.2
Published
Pseudorandom number generator array creation function tools.
Downloads
6
Readme
Tools
Pseudorandom number generator (PRNG) array creation function tools.
Installation
npm install @stdlib/random-array-tools
Usage
var ns = require( '@stdlib/random-array-tools' );
ns
Namespace containing array creation pseudorandom number generator (PRNG) function tools.
var o = ns;
// returns {...}
The namespace contains the following:
binaryFactory( prng, dtypes, dtype )
: create a factory function for generating pseudorandom values drawn from a binary PRNG.binary( prng, dtypes, dtype )
: constructor for creating arrays filled with pseudorandom values drawn from a binary PRNG.nullary( prng, dtypes, dtype )
: constructor for creating arrays filled with pseudorandom values drawn from a nullary PRNG.ternaryFactory( prng, dtypes, dtype )
: create a factory function for generating pseudorandom values drawn from a ternary PRNG.ternary( prng, dtypes, dtype )
: constructor for creating arrays filled with pseudorandom values drawn from a ternary PRNG.unaryFactory( prng, dtypes, dtype )
: create a factory function for generating pseudorandom values drawn from a unary PRNG.unary( prng, dtypes, dtype )
: constructor for creating arrays filled with pseudorandom values drawn from a unary PRNG.
Examples
var objectKeys = require( '@stdlib/utils-keys' );
var ns = require( '@stdlib/random-array-tools' );
console.log( objectKeys( ns ) );
Notice
This package is part of stdlib, a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more.
For more information on the project, filing bug reports and feature requests, and guidance on how to develop stdlib, see the main project repository.
Community
License
See LICENSE.
Copyright
Copyright © 2016-2024. The Stdlib Authors.