|
WeightedCollectionTGetRandomItem Method (Random) |
Get a random item from the pool.
Namespace: JLChnToZ.LuckyPlayer.WeightedRandomizerAssembly: LuckyPlayer (in LuckyPlayer.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public T GetRandomItem(
Random random = null
)
Public Function GetRandomItem (
Optional random As Random = Nothing
) As T
public:
T GetRandomItem(
Random^ random = nullptr
)
member GetRandomItem :
?random : Random
(* Defaults:
let _random = defaultArg random null
*)
-> 'T
Parameters
- random (Optional)
- Type: SystemRandom
Optional randomizer, it will use the default one if null is passed or ignored.
Return Value
Type:
TThe random item
See Also