 | GeneratorChooseUniformRandomTSource Method (IListTSource) |
Make a generator that randomly generates elements from a list.
Namespace:
Gamelogic.Extensions.Algorithms
Assembly:
Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntaxpublic static IGenerator<TSource> ChooseUniformRandom<TSource>(
IList<TSource> list
)
Parameters
- list
- Type: System.Collections.GenericIListTSource
The source list.
Type Parameters
- TSource
- The type of elements to generate.
Return Value
Type:
IGeneratorTSourceA new generator.
Exceptions
See Also