Uses of Interface
org.qiunet.utils.math.IWeightObj
Packages that use IWeightObj
-
Uses of IWeightObj in org.qiunet.utils.math
Methods in org.qiunet.utils.math with type parameters of type IWeightObjModifier and TypeMethodDescriptionstatic <T extends IWeightObj>
TMathUtil.randByWeight(List<T> list) 在list 里面根据权重随机个数据static <T extends IWeightObj>
TMathUtil.randByWeight(List<T> list, int totalRandNum) 随机一个[0, totalRandNum)值 返回对应的对象.