Skip to content

Instantly share code, notes, and snippets.

@itsdebartha
Created August 22, 2022 14:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save itsdebartha/a62c7c82c50a9fcb8aa0257d2959ddd8 to your computer and use it in GitHub Desktop.
Save itsdebartha/a62c7c82c50a9fcb8aa0257d2959ddd8 to your computer and use it in GitHub Desktop.
n<-10 #take n as 10
x<-replicate(1000000,rolls(n)) #repeat the function with n as 10
mean(x) #take the mean
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment