Set next sample's level based on previous level
This commit is contained in:
parent
19eb4b5f4e
commit
3c7713ae00
@ -40,7 +40,7 @@ namespace FastRng.Double
|
||||
|
||||
if (this.samples[nextBucket] >= this.threshold)
|
||||
{
|
||||
this.samples[nextBucket] = 0.0;
|
||||
this.samples[nextBucket] -= this.threshold;
|
||||
return nextNumber;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user