X-Git-Url: https://git.distorted.org.uk/u/mdw/catacomb/blobdiff_plain/ba6e6b64033b1f9de49feccb5c9cd438354481f7..0f00dc4c8eb47e67bc0f148c2dd109f73a451e0a:/rand/t/lcrand diff --git a/rand/t/lcrand b/rand/t/lcrand new file mode 100644 index 0000000..6cc9dce --- /dev/null +++ b/rand/t/lcrand @@ -0,0 +1,32 @@ +# Test vectors for linear congruential generator + +lcrand { + # --- Standard stuff --- + + 0 271828183; + 271828183 996300340; + 996300340 228306184; + 228306184 1171467301; + 1171467301 3265426054; + 3265426054 2636049353; + 2636049353 3799512036; + 3799512036 2414373801; + 2414373801 1059474234; + 1059474234 2734911993; + 2734911993 239668818; + 239668818 1752802481; + 1752802481 34386946; + 34386946 1344553049; + 1344553049 1121833700; + 1121833700 636134543; + + # --- Particular outputs --- + + 2282233179 4294967290; + 2624567577 0; + 2966901975 1; + + # --- Fixed point --- + + 3223959250 3223959250; +}