chiark / gitweb /
Merge branch 'fixes'
[catacomb] / tests / lcrand
1 # Test vectors for linear congruential generator
2 #
3 # $Id: lcrand,v 1.3 2000/07/15 10:03:13 mdw Exp $
4
5 lcrand {
6   # --- Standard stuff ---
7
8   0             271828183;
9   271828183     996300340;
10   996300340     228306184;
11   228306184     1171467301;
12   1171467301    3265426054;
13   3265426054    2636049353;
14   2636049353    3799512036;
15   3799512036    2414373801;
16   2414373801    1059474234;
17   1059474234    2734911993;
18   2734911993    239668818;
19   239668818     1752802481;
20   1752802481    34386946;
21   34386946      1344553049;
22   1344553049    1121833700;
23   1121833700    636134543;
24
25   # --- Particular outputs ---
26
27   2282233179    4294967290;
28   2624567577    0;
29   2966901975    1;
30
31   # --- Fixed point --- 
32
33   3223959250    3223959250;
34 }