Uniform sampling in a tetrahedron (in dimension 3).
runif_in_tetrahedron(n, v1, v2, v3, v4)
number of simulations
vertices of the tetrahedron
The simulations in a
runif_in_simplex for sampling in a simplex in
1 2 3 4 5 6
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.