Description Usage Arguments Value
Sample from levels 0 to m-1 weighted by prob
1 | Rcpp_sample(prob)
|
prob |
vector of probabilities |
sample of size 1
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.