dice

package
v2.19.4+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 23, 2017 License: MIT Imports: 2 Imported by: 0

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 RandomUint16

func RandomUint16() uint16

RandomUint16 returns a random uint16 value.

func Roll

func Roll(n int) int

Roll returns a non-negative number between 0 (inclusive) and n (exclusive).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL