Question: # Set the random seed for reproducibility set.seed ( 5 2 9 2 0 1 6 ) # Simulate rolling a pair of dice five
# Set the random seed for reproducibility set.seed # Simulate rolling a pair of dice five times numsimulations dicerolls matrixsample: numsimulations, replace TRUE ncol # Find the largest value on each pair of dice X applydicerolls, max # Print the values of X X
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
