Description
It should be possible to create an enumerated real or integer distribution from an input array of values, with the frequency of occurrence of a value determining its probability. For example,
EnumeratedIntegerDistribution([0,1,1,2])
would be the same as
EnumeratedIntegerDistribution([0,1,2], [.25, .5, .25])
.