Craps, loop

Sign in to test your solution.
two_6d <- function(n) { random_numbers <- matrix(sample(6, 2 * n, replace = TRUE), nrow = 2) colSums(random_numbers) } set.seed(1234)
You can submit as many times as you like. Only your latest submission will be taken into account.
Sign in to test your solution.