roll

package
v0.0.0-...-fb9da95 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const ShinyOdds = 20

Variables

This section is empty.

Functions

This section is empty.

Types

type Gender

type Gender string
const (
	Male       Gender = "male"
	Female     Gender = "female"
	Genderless Gender = "genderless"
)

type Result

type Result struct {
	Species pokedex.Species
	Gender  Gender
	Shiny   bool
}

func Roll

func Roll() Result

func RollWith

func RollWith(src Source) Result

type Source

type Source interface {
	IntN(n int) int
}

Jump to

Keyboard shortcuts

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