search for: number_of_dice

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

2009 Feb 02
4
New to R
...is is one of the best languages I've 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...