Module dice
[hide private]
[frames] | no frames]

Module dice

source code

This module provides the Dice class (formula based random numbers)

Classes [hide private]
  Dice
This class supports formula based dice rolls.
Functions [hide private]
 
test(formula, min_expected, max_expected, rolls=20)
test that a formula generates rolls w/expected values
source code
 
main()
test cases:
source code
Variables [hide private]
  __package__ = None
Function Details [hide private]

test(formula, min_expected, max_expected, rolls=20)

source code 

test that a formula generates rolls w/expected values

Parameters:
  • formula - (string) for the DIce
  • min_expected - minimum expected value
  • max_expected - maximum expecetd value
  • rolls - number of test rolls