<?php
function to32bit($t) {
}
function gmp_shiftl($y,$n) {
}
function gmp_shiftr($y,$n) {
}
$P = 10;
for ($i=1 ; $i <= $P; $i++) {
$x = to32bit
(gmp_add(gmp_mul("69069",$x),"12345")); // Линейный конгруэнтный метод Xn+1 = (aXn +c) $y = to32bit
(gmp_xor($y,gmp_shiftl
($y,13))); // Xor-shift начало $y = to32bit
(gmp_xor($y,gmp_shiftr
($y,17))); $y = to32bit
(gmp_xor($y,gmp_shiftl
($y,5))); // Xor-shift конец
$c = to32bit(gmp_shiftr($t,32));
$z = $t;
$MathExpectation = gmp_add($MathExpectation,$M);
echo $i . "|" . gmp_strval($result) . "<br></br>\n"; };
$MathExpectation = gmp_div($MathExpectation,$P);
echo "<br> Математическое ожидание: {$MathExpectation} </br>";
echo "<br> Среднеквадратическое отклонение: {$AverageSquareDifference} </br>";
echo "<br> Дисперсия: {$Dispersion} </br>";
?>