toggle menu
korge-root
5.1.0
common
switch theme
search in API
korge-foundation
/
korlibs.math.random
/
RandomWeights
Random
Weights
data
class
RandomWeights
<
T
>
(
val
weightsMap
:
Map
<
T
,
Double
>
)
Members
Constructors
Random
Weights
Link copied to clipboard
constructor
(
vararg
pairs
:
Pair
<
T
,
Double
>
)
constructor
(
values
:
List
<
T
>
,
weights
:
List
<
Double
>
)
constructor
(
weightsMap
:
Map
<
T
,
Double
>
)
Types
Companion
Link copied to clipboard
object
Companion
Properties
items
Link copied to clipboard
val
items
:
List
<
T
>
normalized
Weights
Link copied to clipboard
val
normalizedWeights
:
List
<
Double
>
weights
Link copied to clipboard
val
weights
:
List
<
Double
>
weights
Map
Link copied to clipboard
val
weightsMap
:
Map
<
T
,
Double
>