R Tutorial: Flipping coins in R