dice

package module
v0.0.0-...-be2d327 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: Unlicense Imports: 1 Imported by: 0

README

dice

GoDoc Go Report Card

Package dice provides a few simple functions to return dice-like results

Functions

func D

func D(sides int) int

D returns a random integer between 1 and sides.

func D10

func D10() int

D10 returns a random integer between 1 and 10.

func D100

func D100() int

D100 returns a random integer between 1 and 100.

func D2

func D2() int

D2 returns a random integer either 0 or 1.

func D6

func D6() int

D6 returns a random integer between 1 and 6.

Documentation

Overview

Package dice provides a few simple functions to return dice-like results

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func D

func D(sides int) int

D returns a random integer between 1 and sides.

func D2

func D2() int

D2 returns a random integer either 0 or 1.

func D6

func D6() int

D6 returns a random integer between 1 and 6.

func D10

func D10() int

D10 returns a random integer between 1 and 10.

func D100

func D100() int

D100 returns a random integer between 1 and 100.

Types

This section is empty.

Jump to

Keyboard shortcuts

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