/rust-mersenne-twister

Mersenne Twister in pure rust

Primary LanguageRustApache License 2.0Apache-2.0

Mersenne Twister in Rust

This is a pure rust port of the Mersenne Twister pseudorandom number generators. See the rustdoc for suggested usage.

Algorithms

  • MT19937 (32-bit version)
  • MT19937-64 (64-bit version)

Stability

This crate takes advantage of rust's built-in benchmarking, which is still an unstable feature as of 1.8. Until it stabilizes, one must compile the tests for this crate with nightly, or fork the crate and remove the benchmarks.

License

Licensed under either of

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.