Created
September 13, 2021 17:54
-
-
Save orrymr/7b55899c60ab9b40843161d3ccae32f3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
number_of_rolls <- 1000000 # Or, we could manually roll a die 1 million times. Nah, let's let the computer do it. | |
mean(sample(1:6, number_of_rolls, replace = TRUE)) | |
# [1] 3.499435 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment