|
WeightedCollectionTGetRandomItem Method (Double) |
Get an item from the pool with random value passed.
Namespace: JLChnToZ.LuckyPlayer.WeightedRandomizerAssembly: LuckyPlayer (in LuckyPlayer.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public virtual T GetRandomItem(
double randomValue
)
Public Overridable Function GetRandomItem (
randomValue As Double
) As T
public:
virtual T GetRandomItem(
double randomValue
)
abstract GetRandomItem :
randomValue : float -> 'T
override GetRandomItem :
randomValue : float -> 'T
Parameters
- randomValue
- Type: SystemDouble
The randomized value, should be between 0 and 1.
Return Value
Type:
TThe random item
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