Registry / utility / jonas747-dice

jonas747-dice

JSON →
library0.0.0-20170619144252-7735f6ee7b69gogounverified

Package dice provides functionality for rolling dice and generating random numbers, likely for games or simulations.

go get github.com/jonas747/dice
INSTALL
IMPORT
SIG · JONAS747-DICE
J
jonas747-dice
utilitygov0.0.0-20170619144252-7735f6ee7b69
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

dice
github.com/jonas747/dice

Minimal example showing how to roll dice using a standard notation string.

package main import ( "fmt" "github.com/jonas747/dice" ) func main() { result, err := dice.Roll("2d6+3") if err != nil { panic(err) } fmt.Printf("Rolled: %d\n", result) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20170619144252-7735f6ee7b69latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
jonas747-dice — go get jonas747-dice · libregistry