@stdlib/random-tools
v0.1.1
Published
Pseudorandom number generator ndarray creation function tools.
Downloads
28
Readme
Tools
Pseudorandom number generator ndarray creation function tools.
Installation
npm install @stdlib/random-toolsUsage
var ns = require( '@stdlib/random-tools' );ns
Pseudorandom number generator ndarray creation function tools.
var o = ns;
// returns {...}The namespace exports the following:
binaryFactory( prng, idtypes, odtypes, policies[, options] ): create a function for generating pseudorandom values drawn from a binary PRNG.binary( prng, idtypes, odtypes, policies[, options] ): constructor for creating ndarrays filled with pseudorandom values drawn from a binary PRNG.ternaryFactory( prng, idtypes, odtypes, policies[, options] ): create a function for generating pseudorandom values drawn from a ternary PRNG.ternary( prng, idtypes, odtypes, policies[, options] ): constructor for creating ndarrays filled with pseudorandom values drawn from a ternary PRNG.unaryFactory( prng, idtypes, odtypes, policies[, options] ): create a function for generating pseudorandom values drawn from a unary PRNG.unary( prng, idtypes, odtypes, policies[, options] ): constructor for creating ndarrays filled with pseudorandom values drawn from a unary PRNG.
Examples
var objectKeys = require( '@stdlib/utils-keys' );
var ns = require( '@stdlib/random-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-2026. The Stdlib Authors.
