search for: number_of_rol

Displaying 1 result from an estimated 1 matches for "number_of_rol".

Did you mean: number_of_rolls
2009 Feb 02
4
New to R
...found for getting tasks I'm interested in done. I wrote this simple die roller and was curious to know if it is R enough. ############################################################################## # # Input: # die_size - 4, 6, 8, 10, 20 # number_of_dice - How many dice to roll # number_of_rolls - How many times to roll the dice # # Output: # rolls - The array holding the values of the dice # ############################################################################## # function(die_size, number_of_dice, number_of_rolls) { rolls <- array(0, dim=c(number_of_rolls, number_of_dice)...