Click or drag to resize
PlayerLuckHandleWithLuckT Method (WeightedCollectionT, Random)
Gets a random item from the collection, and do further process for luckyness adjustment.

Namespace: JLChnToZ.LuckyPlayer
Assembly: LuckyPlayer (in LuckyPlayer.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public T HandleWithLuck<T>(
	WeightedCollection<T> collection,
	Random random = null
)

Parameters

collection
Type: JLChnToZ.LuckyPlayer.WeightedRandomizerWeightedCollectionT
The collection pool
random (Optional)
Type: SystemRandom
Optional randomizer

Type Parameters

T

Return Value

Type: T
The item selected
See Also