Click or drag to resize
WeightedCollectionTGetRandomItem Method (Random)
Get a random item from the pool.

Namespace: JLChnToZ.LuckyPlayer.WeightedRandomizer
Assembly: LuckyPlayer (in LuckyPlayer.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public T GetRandomItem(
	Random random = null
)

Parameters

random (Optional)
Type: SystemRandom
Optional randomizer, it will use the default one if null is passed or ignored.

Return Value

Type: T
The random item
See Also