







![]() ![]() |
Project Mercury API Reference |
RandomHelper..::.Variation Method |
RandomHelper Class Example See Also Send Feedback |
[This is preliminary documentation and is subject to change.]
Returns a random variation of the specified value.
Namespace:
ProjectMercury
Assembly:
ProjectMercury (in ProjectMercury.dll) Version: 3.1.0.0
Syntax
C# |
---|
public static float Variation( float value, float variation ) |
Visual Basic (Declaration) |
---|
Public Shared Function Variation ( _ value As Single, _ variation As Single _ ) As Single |
Visual C++ |
---|
public: static float Variation( float value, float variation ) |
Parameters
- value
- Type: System..::.Single
The value.
- variation
- Type: System..::.Single
The variation multiple of the value.
Return Value
[Missing <returns> documentation for "M:ProjectMercury.RandomHelper.Variation(System.Single,System.Single)"]
Examples
a value of 10 with a variation of 0.5 will result in a random number between 5.0 and 15.