Update toy_document_fr.Rmd

parent 1cb58b8d
......@@ -19,3 +19,12 @@ print(p)
#Lien aiguille de buffon
[Aiguille de Buffon](https://fr.wikipedia.org/wiki/Aiguille_de_Buffon)
```{r}
set.seed(42)
N = 100000
x = runif(N)
theta = pi/2*runif(N)
R=2/(mean(x+sin(theta)>1))
plot=R
```
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment