This is a pure rust port of the Mersenne Twister pseudorandom number generators. See the rustdoc for suggested usage.
- MT19937 (32-bit version)
- MT19937-64 (64-bit version)
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.
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT) at your option.
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.