Click or drag to resize

GeneratorChooseUniformRandomTSource Method (IListIGeneratorTSource, Int32)

Chooses the random.

Namespace:  Gamelogic.Extensions.Algorithms
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
public static IGenerator<TSource> ChooseUniformRandom<TSource>(
	IList<IGenerator<TSource>> list,
	int seed
)

Parameters

list
Type: System.Collections.GenericIListIGeneratorTSource
The list.
seed
Type: SystemInt32
The seed.

Type Parameters

TSource
The type of the t source.

Return Value

Type: IGeneratorTSource
IGenerator<TSource>.
Exceptions
ExceptionCondition
ArgumentNullExceptionlist is $(null).
ArgumentExceptionlist is empty or has null elements.
See Also