Chance.PositiveOrNegative
Static Method in Chance
Declaration
public static float PositiveOrNegative()Description
Returns 1f or -1f, with 50-50 odds.
Returns
| float | 1f or -1f, with 50-50 odds. |
Overload
Declaration
public static float PositiveOrNegative(float value)Description
Returns -value or +value, with 50-50 odds.
Parameters
| value | The value to be returned. |
Returns
| float | -value or +value, with 50-50 odds. |