Skip to content

mztikk/mersenne-twister

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mersenne-twister

Mersenne Twister(MT19937) implementation in Rust. Found on crates as mersenne-twister-m

Examples

Create MT19937 instance with either default seed

let mut mt = MT19937::default();
let mut mt = MT19937::new();

or a custom seed

let mut mt = MT19937::new_with_seed(4537);

generate or peek random value with

mt.genrand()
mt.peek()

Build

Build with

cargo build

Test

Run tests with

cargo test

About

Mersenne Twister(MT19937) implementation in Rust

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages