Table of Contents

Class RandomExtensions

Namespace
SimulationFramework
Assembly
SimulationFramework.dll

Extends Random with methods to generate SimulationFramework types.

public static class RandomExtensions
Inheritance
RandomExtensions
Inherited Members

Methods

NextColor(Random)

public static Color NextColor(this Random random)

Parameters

random Random

Returns

Color

NextColor(Random, byte)

public static Color NextColor(this Random random, byte alpha)

Parameters

random Random
alpha byte

Returns

Color

NextColorF(Random)

public static ColorF NextColorF(this Random random)

Parameters

random Random

Returns

ColorF

NextColorF(Random, float)

public static ColorF NextColorF(this Random random, float alpha)

Parameters

random Random
alpha float

Returns

ColorF

NextSingle(Random, float)

public static float NextSingle(this Random random, float maxValue)

Parameters

random Random
maxValue float

Returns

float

NextSingle(Random, float, float)

public static float NextSingle(this Random random, float minValue, float maxValue)

Parameters

random Random
minValue float
maxValue float

Returns

float

NextUnitVector2(Random)

public static Vector2 NextUnitVector2(this Random random)

Parameters

random Random

Returns

Vector2

NextVector2(Random)

public static Vector2 NextVector2(this Random random)

Parameters

random Random

Returns

Vector2