powered by
Equivalent of RandDist() in Insight Maker
rdist(a, b)
One sample from custom distribution
Vector to draw sample from
Vector of probabilities
rdist(c(1, 2, 3), c(.5, .25, .25))
Run the code above in your browser using DataLab