RangeTests GetRandomValue Method Delta Engine Documentation

Namespace: DeltaEngine.Tests.Datatypes
Assembly: DeltaEngine.Tests (in DeltaEngine.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void GetRandomValue()
Examples

[Test]
public void GetRandomValue()
{
    var range = new Range<Vector3D>(Vector3D.UnitX, 2 * Vector3D.UnitX);
    var random = range.GetRandomValue();
    Assert.IsTrue(random.X >= 1.0f && random.X <= 2.0f);
}
See Also