Click or drag to resize

GeneratorChooseUniformRandomTSource Method (IListIGeneratorTSource)

Makes a generator that selects a random generator from a given element to generate an element from.

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
)

Parameters

list
Type: System.Collections.GenericIListIGeneratorTSource
The list of generators to choose from.

Type Parameters

TSource
The type of elements to generate.

Return Value

Type: IGeneratorTSource
A new generator.
Exceptions
ExceptionCondition
ArgumentNullExceptionlist is $(null).
ArgumentExceptionlist is empty or has null elements.
See Also