-
-
Save itsdebartha/bd3286a728726daded939da441f98230 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
rolls<-function(n) #function | |
{ | |
x<-sample(1:6,n,replace=T) #roll n times | |
return(max(x)) #return the max face value obtained | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment