dogacha

package
v0.0.0-...-e366413 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Gacha

func Gacha(all, expectProbability int64) (bool, error)

Gacha do gacha if Gacha(100, 1) is 1%, Gacha(1000, 2) is 0.2% 1% chance of true else return false (99%)

func Percentages

func Percentages(all, n int64) float64

Percentages all:100,n:1 => 0.01(1%)

Types

type Pro

type Pro struct {
}

func New

func New() *Pro

New type gacha struct return *gacha

Jump to

Keyboard shortcuts

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