sneaking fix

This commit is contained in:
GameHerobrine 2022-09-07 18:09:09 +03:00
parent d02c98b2b3
commit 64151dcad0
4 changed files with 12 additions and 6 deletions

View file

@ -39,8 +39,8 @@ class Random{
$s = $v1 * $v1 + $v2 * $v2;
}while($s >= 1 || $s == 0);
$multiplier = sqrt(-2 * log($s) / $s);
$nextNextGaussian = $v2 * $multiplier;
$haveNextNextGaussian = true;
$this->nextNextGaussian = $v2 * $multiplier;
$this->haveNextNextGaussian = true;
return $v1 * $multiplier;
}
}