MCPcopy Create free account
hub / github.com/PCGen/pcgen / roll

Method roll

code/src/java/pcgen/core/RollingMethods.java:50–53  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers 11

testRollMethod · 0.95
testTopRollMethod · 0.95
testRerollRollMethod · 0.95
refreshRollMethodMethod · 0.95
actionPerformedMethod · 0.95
actionPerformedMethod · 0.95
rollStatsMethod · 0.95
generateAgeMethod · 0.95
generateBioValueMethod · 0.95
generateHeightWeightMethod · 0.95

Calls 15

getRandomIntMethod · 0.95
getRightIndexMethod · 0.95
getLeftIndexMethod · 0.95
errorPrintMethod · 0.95
reduceMethod · 0.80
streamMethod · 0.80
parseExpressionMethod · 0.80
generateMethod · 0.65
lastIndexOfMethod · 0.65
toStringMethod · 0.65
addFunctionMethod · 0.65
getValueMethod · 0.65

Tested by 3

testRollMethod · 0.76
testTopRollMethod · 0.76
testRerollRollMethod · 0.76