import "v2ray.com/core/common/dice"
Package dice contains common functions to generate random number. It also initialize math/rand with the time in seconds at launch time.
Roll returns a non-negative number between 0 (inclusive) and n (exclusive).
Roll returns a non-negative number between 0 (inclusive) and n (exclusive).
RollUint16 returns a random uint16 value.
Package dice imports 2 packages (graph) and is imported by 125 packages. Updated 2020-06-06. Refresh now. Tools for package owners.