Click or drag to resize

GLRandomRandomOffset Method

Gives a random value within a given range centered around a given value.

Namespace:  Gamelogic.Extensions
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
public static float RandomOffset(
	float value,
	float range
)

Parameters

value
Type: SystemSingle
The value around which the random values will be centered.
range
Type: SystemSingle
The range of the returned value.

Return Value

Type: Single
A random value between value - range/2 and value + range/2.
See Also