From 96498e9b7d63aaa82bb2dc9a7c95bf0464d89500 Mon Sep 17 00:00:00 2001 From: Genevieve Alfirevic Date: Sat, 8 Feb 2025 05:04:45 -0600 Subject: Markdown hates me --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index fd5f353..9839e90 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ *i was extract it. this is a port and not using a crate from crates.io* *because i thought it would be fun and thrilling. i was right)* -https://en.wikipedia.org/wiki/Mersenne_Twister + I've been doing research on Mersenne Twister. Apparently if you seed it poorly, a "bad seed", with a run of lots of 1s of 0s, you can get @@ -16,11 +16,11 @@ This S.O. answer about seeding Mersenne mentions there are other PRNGs that are easier to implement. https://stackoverflow.com/a/8473025 Checked against the (original?) Mersenne Twister website. - https://www.math.sci.hiroshima-u.ac.jp/m-mat/MT/emt.html -It has the latest version of the algorithm up at - https://www.math.sci.hiroshima-u.ac.jp/m-mat/MT/MT2002/emt19937ar.html +- +It has the latest version of the algorithm up at +- which has output that we can test against here - https://www.math.sci.hiroshima-u.ac.jp/m-mat/MT/MT2002/CODES/mt19937ar.out +- and it all matches! both the u32 generator and the double "real" (f64) generator. -- cgit 1.4.1-3-g733a5