prob = function(K){ s = 0 for (i in 1:K){ x = rnorm(1) if(-3<x & x<3){ s = s + 1 } } s/K } prob(5000)
Add the following code to your website.
REMOVE THIS Copy to clipboard
For more information on customizing the embed code, read Embedding Snippets.