Click or drag to resize
PlayerLuckHandleWithLuckT Method (WeightedCollectionT, Double)
Gets a random item from the collection from random value given by caller, 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,
	double randomValue
)

Parameters

collection
Type: JLChnToZ.LuckyPlayer.WeightedRandomizerWeightedCollectionT
The collection pool
randomValue
Type: SystemDouble
The random value generated by caller

Type Parameters

T

Return Value

Type: T
The item selected
Remarks
This overloaded method is for more advanced uses, which require callers to generate the random number by themself then passing it in.
See Also