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 NewDeterministicDice ¶
func NewDeterministicDice(seed int64) *deterministicDice
func RollDeterministic ¶
Roll returns a non-negative number between 0 (inclusive) and n (exclusive).
func RollUint64 ¶
func RollUint64() uint64
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.