mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
sneaking fix
This commit is contained in:
parent
d02c98b2b3
commit
64151dcad0
4 changed files with 12 additions and 6 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue