public class WeightedChoice<E>
extends java.lang.Object
Constructor and Description |
---|
WeightedChoice() |
Modifier and Type | Method and Description |
---|---|
WeightedChoice<E> |
add(double weight,
E result) |
E |
next() |
public WeightedChoice<E> add(double weight, E result)
public E next()