Vous êtes sur la page 1sur 2

Método Congruencial Mixto

Xi+1 =(a * Xi + C) Mod M

X0 4
a 5
c 7
m 8

X0 a c a*X0 a*X0+c (a*X0)/m Xn RND


4 5 7 20 27 3 3/8 3 0.375
3 5 7 15 22 2 6/8 6 0.750
6 5 7 30 37 4 5/8 5 0.625
5 5 7 25 32 4 0 0.000
0 5 7 0 7 7/8 7 0.875
7 5 7 35 42 5 2/8 2 0.250
2 5 7 10 17 2 1/8 1 0.125
1 5 7 5 12 1 4/8 4 0.500
4 5 7 20 27 3 3/8 3 0.375
3 5 7 15 22 2 6/8 6 0.750
6 5 7 30 37 4 5/8 5 0.625
5 5 7 25 32 4 4 0.000
4 5 7 20 27 3 3/8 4 0.375
4 5 7 20 27 3 3/8 0 0.375
0 5 7 0 7 7/8 7 0.875

X0 20
a 5
c 5
m 32

X0 a c a*X0 a*X0+c (a*X0)/m Xn RND


20 5 5 100 105 3 9/32 9 0.281
9 5 5 45 50 1 18/32 18 0.563
18 5 5 90 95 2 31/32 13 0.969
13 5 5 65 70 2 6/32 6 0.188
6 5 5 30 35 1 3/32 3 0.094
3 5 5 15 20 20/32 20 0.625
20 5 5 100 105 3 9/32 9 0.281
9 5 5 45 50 1 18/32 18 0.563
18 5 5 90 95 2 31/32 31 0.969
31 5 5 155 160 5 0 0.000
0 5 5 0 5 5/32 5 0.156
5 5 5 25 30 30/32 30 0.938
30 5 5 150 155 4 27/32 27 0.844
27 5 5 135 140 4 12/32 12 0.375
12 5 5 60 65 2 1/32 1 0.031

X0 10
a 9
c 13
m 16

X0 a c a*X0 a*X0+c (a*X0)/m Xn RND


10 9 13 90 103 6 7/16 7 0.438
7 9 13 63 76 4 12/16 12 0.750
12 9 13 108 121 7 9/16 9 0.563
9 9 13 81 94 5 14/16 14 0.875
14 9 13 126 139 8 11/16 11 0.688
11 9 13 99 112 7 0 0.000
0 9 13 0 13 13/16 13 0.813
13 9 13 117 130 8 2/16 2 0.125
2 9 13 18 31 1 15/16 15 0.938
15 9 13 135 148 9 4/16 4 0.250
4 9 13 36 49 3 1/16 1 0.063
1 9 13 9 22 1 6/16 6 0.375
6 9 13 54 67 4 3/16 3 0.188
3 9 13 27 40 2 8/16 8 0.500
8 9 13 72 85 5 5/16 5 0.313