Discrete distribution.
DiscreteDistribution(x, prob, replace = TRUE)
x
: vector of one or more integers from which to chooseprob
: a vector of probability weights for obtaining the elements of the vector being sampledreplace
: should sampling be with replacement, default is TRUEa discrete distribution
Useful links