R exercise

Craps

Sign in to hand in your solution and get feedback.

two_6d <- function(n) { random_numbers <- matrix(sample(6, 2 * n, replace = TRUE), nrow = 2) colSums(random_numbers) } set.seed(1234)