Documentation ¶
Overview ¶
Package dice contains common functions to generate random number. It also initialize math/rand with the time in seconds at launch time.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RollDeterministic ¶
Roll returns a non-negative number between 0 (inclusive) and n (exclusive).
func RollUint64 ¶
func RollUint64() uint64
Types ¶
type DeterministicDice ¶
func NewDeterministicDice ¶
func NewDeterministicDice(seed int64) *DeterministicDice
func (*DeterministicDice) Roll ¶
func (dd *DeterministicDice) Roll(n int) int
Click to show internal directories.
Click to hide internal directories.