The range equivalent of dice, each element of which is the
result of the roll of a random die with relative probabilities
stored in the range proportions. Each successive value of
front reflects the index in proportions that was chosen.
If no random number generator is specified, the default rndGen
will be used as the source of randomness.
This offers a superior option in the event of making many rolls
of the same die, as the sum and CDF of proportions only needs
to be calculated upon construction and not with each call.
autodiscreteDistribution(UniformRNG rng, Range proportions)
The range equivalent of dice, each element of which is the result of the roll of a random die with relative probabilities stored in the range proportions. Each successive value of front reflects the index in proportions that was chosen. If no random number generator is specified, the default rndGen will be used as the source of randomness.
This offers a superior option in the event of making many rolls of the same die, as the sum and CDF of proportions only needs to be calculated upon construction and not with each call.