Click or drag to resize
HelpersScaleFineTuneWeightT Method
Scales all fine tune weight based on 1.

Namespace: JLChnToZ.LuckyPlayer
Assembly: LuckyPlayer (in LuckyPlayer.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public static bool ScaleFineTuneWeight<T>(
	this WeightedCollection<T> collection
)

Parameters

collection
Type: JLChnToZ.LuckyPlayer.WeightedRandomizerWeightedCollectionT
The collection have to scale the fine tune weight

Type Parameters

T

Return Value

Type: Boolean
true if success scaled, otherwise false.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type WeightedCollectionT. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also