GeneratorPool<T>

A pool of generators that randomly selects one to generate a value.

Implements: Archigen.IGenerator<T>

Constructors

Constructor
Description

GeneratorPool()

Initializes an empty pool.

Methods

Method
Returns
Description

Add(Archigen.IGenerator<T> generator)

Next()

T

Selects a random generator from the pool then returns a value generated by that generator.

Properties

Property
Type
Description

Selector

Archigen.RandomSelector <Archigen.IGenerator <T>>

A selector used to randomly choose a generator.

Last updated