# Quincunx (Galton box, Bean machine) in R

### Yihui Xie / 2008-10-20

Yesterday I wrote some R code to simulate the quincunx, and I wrote an R function quincunx() in the animation package. Here is a video: