powered by
sample.discrete generates a sample of size n given its density function df
sample.discrete
n
df
sample.discrete(df, n)
The density function - It is assumed that the support is a subset of the natural numbers
The desired sample size