Roll times number of dice with sides shape. @param times int how many dice to roll? @param sides int what shape dice? @return int dice total
(final int times, final int sides)
| 48 | * @return int dice total |
| 49 | */ |
| 50 | public static int roll(final int times, final int sides) |
| 51 | { |
| 52 | return roll(times, sides, times, 0); |
| 53 | } |
| 54 | |
| 55 | /** |
| 56 | * One random number between 1 and <var>sides</var>, good, for |