MCPcopy Create free account
hub / github.com/andeya/algorithm / Roll

Function Roll

dice/dice.go:117–119  ·  view source on GitHub ↗

* Roll() generates a new dice roll based on parameters obtained from parsing the passed string. The expected format is d [Adder], where NumDice is the number of dice to roll, DieFaces is how many sides per die, and Adder is a static quantity to add to the total. Adder must start

(description string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

BenchmarkRollFunction · 0.85

Calls 1

newDiceRollFunction · 0.85

Tested by 2

BenchmarkRollFunction · 0.68