Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ GetSampleForLargeRange()

double System.Random.CompatPrng.GetSampleForLargeRange ( )
inlinepackage

Definition at line 417 of file Random.cs.

418 {
419 int num = InternalSample();
420 if (InternalSample() % 2 == 0)
421 {
422 num = -num;
423 }
424 double num2 = num;
425 num2 += 2147483646.0;
426 return num2 / 4294967293.0;
427 }

References System.Random.CompatPrng.InternalSample().

Referenced by System.Random.Net5CompatSeedImpl.Next(), and System.Random.Net5CompatDerivedImpl.Next().