This is a stub types definition for random-js (https://github.com/ckknight/random-js).
random-js provides its own type definitions, so you don't need @types/random-js installed!
This is a stub types definition. random-js provides its own type definitions, so you do not need this installed.
Stub TypeScript definitions entry for random-js, which provides its own types definitions
This is a stub types definition for random-js (https://github.com/ckknight/random-js).
random-js provides its own type definitions, so you don't need @types/random-js installed!
dist/
outputs:random-js.js
=> random-js.umd.js
random-js.mjs
=> random-js.esm.js
random-js.min.js
=> random-js.umd.min.js
"sideEffects": false
to package.json
as a hint to Webpacktry
-catch
to help parsing issues #30nodeCrypto
enginecreateEntropy
function, which can be used when seeding a Mersenne TwisterbrowserCrypto
to no longer be null
if outside of a browser context, instead throw
ing on first use.Random
class, but instead in a flat hierarchy.getUseCount()
to the mt19937
engine, which returns how many requests or discards have occurred.Random.generateEntropyArray
sample()
results are no longer biased toward the final element.discard(count)
on the mt19937
engine properly works when count is less than 625string('')
now throws an errorhex(upper)
now returns a cached function, for efficiency.int32()
, which returns an integer from -0x80000000
to 0x7fffffff
.date(start, end)
, which returns a Date within a uniform distribution.Random
no longer needs to be called with new, allowing var r = require('random-js')()
begin
and end
arguments to pick
and picker
.shuffle
receives an empty array, it should return that same array.sample
and shuffle
when they are passed an empty array.-c
(compress) option when uglifying.Initial release