Description
The main feature of class EnumeratedDistribution in package org.apache.commons.math4.distribution is to allow sampling from a finite set of elements with user-assigned probabilities.
This functionality seems a good fit for package org.apache.commons.rng.sampling (with a tentative class name of DiscreteProbabilityCollectionSampler).