public class WeightedRandom
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
WeightedRandom.Item |
Constructor and Description |
---|
WeightedRandom() |
Modifier and Type | Method and Description |
---|---|
static WeightedRandom.Item |
getRandomItem(java.util.Random p_76271_0_,
java.util.Collection p_76271_1_) |
static WeightedRandom.Item |
getRandomItem(java.util.Random p_76273_0_,
java.util.Collection p_76273_1_,
int p_76273_2_) |
static WeightedRandom.Item |
getRandomItem(java.util.Random p_76274_0_,
WeightedRandom.Item[] p_76274_1_) |
static WeightedRandom.Item |
getRandomItem(java.util.Random p_76269_0_,
WeightedRandom.Item[] p_76269_1_,
int p_76269_2_) |
static int |
getTotalWeight(java.util.Collection p_76272_0_) |
static int |
getTotalWeight(WeightedRandom.Item[] p_76270_0_) |
public static int getTotalWeight(java.util.Collection p_76272_0_)
public static WeightedRandom.Item getRandomItem(java.util.Random p_76273_0_, java.util.Collection p_76273_1_, int p_76273_2_)
public static WeightedRandom.Item getRandomItem(java.util.Random p_76271_0_, java.util.Collection p_76271_1_)
public static int getTotalWeight(WeightedRandom.Item[] p_76270_0_)
public static WeightedRandom.Item getRandomItem(java.util.Random p_76269_0_, WeightedRandom.Item[] p_76269_1_, int p_76269_2_)
public static WeightedRandom.Item getRandomItem(java.util.Random p_76274_0_, WeightedRandom.Item[] p_76274_1_)