splitmix
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

SplitMix

This random number generator is NOT suitable for cryptographic applications.

Implements the SplitMix algorithm from Fast Splittable Pseudorandom Number Generators by Steele, Lea, and Flood.

See the API docs here.

This provides a splittable random number generator.

Both a functional and a mutable interface are provided. The functional interface matches the node-lcg library. It should be drop-in compatible. The node-lcg is based on Distributed random number generation by Burton and Page. As far as I know, its statistical properties haven't been tested with DieHard or TestU01 unlike the SplitMix algorithm (but not this implementation). Being from 1992 and based on a linear congruential generator, it is not likely to perform well statistically.

It is tested to produce the same values as the Haskell SplitMix implementation.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.0.10latest

Version History

VersionDownloads (Last 7 Days)Published
0.0.10

Package Sidebar

Install

npm i splitmix

Weekly Downloads

0

Version

0.0.1

License

BSD-3-Clause

Unpacked Size

17 kB

Total Files

5

Last publish

Collaborators

  • derek.elkins