|
Pip-Services-Commons-Dotnet
|
Random generator for float values. More...
Static Public Member Functions | |
| static float | NextFloat (int maxValue) |
| Generates a random float value in the range to "max". More... | |
| static float | NextFloat (float minValue, float maxValue) |
| Generates a random float value in the range ["min", "max"]. More... | |
| static float | UpdateFloat (float value) |
| Updates (drifts) a float value without specified range defined More... | |
| static float | UpdateFloat (float value, float range) |
| Updates (drifts) a float value within specified range defined More... | |
Static Private Attributes | |
| static readonly System.Random | _random = new System.Random() |
Random generator for float values.
|
static |
Generates a random float value in the range to "max".
| maxValue | max range value |
|
static |
Generates a random float value in the range ["min", "max"].
| minValue | (optional) minimum range value |
| maxValue | max range value |
|
static |
Updates (drifts) a float value without specified range defined
| value | a float value to drift. |
|
static |
Updates (drifts) a float value within specified range defined
| value | a float value to drift. |
| range | (optional) a range. Default: 10% of the value |
1.8.13