Package | Description |
---|---|
com.lc.lang | |
com.lc.utils |
Modifier and Type | Method and Description |
---|---|
WeightRandom<T> |
WeightRandom.add(WeightRandom.WeightObj<T> weightObj)
增加对象权重
|
Constructor and Description |
---|
WeightRandom(WeightRandom.WeightObj<T> weightObj)
构造
|
WeightRandom(WeightRandom.WeightObj<T>[] weightObjs)
构造
|
Constructor and Description |
---|
WeightRandom(Iterable<WeightRandom.WeightObj<T>> weightObjs)
构造
|
Modifier and Type | Method and Description |
---|---|
static <T> WeightRandom<T> |
URandomUtil.weightRandom(WeightRandom.WeightObj<T>[] weightObjs)
带有权重的随机生成器
WeightRandom |
Modifier and Type | Method and Description |
---|---|
static <T> WeightRandom<T> |
URandomUtil.weightRandom(Iterable<WeightRandom.WeightObj<T>> weightObjs)
带有权重的随机生成器
WeightRandom |
Copyright © 2020. All rights reserved.