Changelog
1.0.5 (2015-03-03)
sample()
results are no longer biased toward the final element.discard(count)
on the mt19937
engine properly works when count is less than 625Changelog
1.0.4 (2014-05-11)
string('')
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.Changelog
1.0.3 (2014-04-23)
Random
no longer needs to be called with new, allowing var r = require('random-js')()
begin
and end
arguments to pick
and picker
.Changelog
1.0.2 (2014-03-20)
shuffle
receives an empty array, it should return that same array.Changelog
1.0.1 (2014-03-20)
sample
and shuffle
when they are passed an empty array.-c
(compress) option when uglifying.