library(animation) ## an interactive demo: choose the test set by mouse-clicking if (interactive()) { ani.options(nmax = 25, interval=1) ## bootstrap for 40 random numbers from U(0, 1) boot.iid(runif(20)) }