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

◆ NextFloat() [3/4]

static float Terraria.Utils.NextFloat ( this UnifiedRandom r,
float minValue,
float maxValue )
inlinestatic

Generates a random value between minValue (inclusive) and maxValue (exclusive).
It will not return maxValue .

Parameters
r
minValue
maxValue
Returns

Definition at line 3177 of file Utils.cs.

3178 {
3179 return (float)r.NextDouble() * (maxValue - minValue) + minValue;
3180 }