generate random numbers as floats

as they get converted from double before use anyway
This commit is contained in:
Matthias Mailänder
2013-03-01 10:53:41 +01:00
parent 793dfa5748
commit 47075e1cd0
5 changed files with 5 additions and 5 deletions

View File

@@ -49,7 +49,7 @@ namespace OpenRA.Thirdparty
public int Next(int low, int high) { return low + Next() % (high - low); }
public int Next(int high) { return Next() % high; }
public double NextDouble() { return Math.Abs(Next() / (double)0x7fffffff); }
public float NextFloat() { return Math.Abs(Next() / (float)0x7fffffff); }
void Generate()
{