WeighedProbability

public class WeighedProbability

Constructors

Link copied to clipboard
public void WeighedProbability()

Functions

Link copied to clipboard
public static Integer pickWeightedProbability(Map<Integer, Double> weighedValues)
Picks a key from the map with a probability proportional to its weight.