go_cases

package module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MarginalityType

type MarginalityType int
const (
	MarginalityFixed   MarginalityType = 0
	MarginalityPercent MarginalityType = 1
)

type MoneyCase

type MoneyCase struct {
	Price            int
	MinWin           int
	MaxWin           int
	MarginalityType  MarginalityType
	MarginalityValue int
}

func NewMoneyCase

func NewMoneyCase(price int, min int, max int, marginalityType MarginalityType, marginalityValue int) *MoneyCase

func (*MoneyCase) GenerateCases

func (m *MoneyCase) GenerateCases(casesCount int) []int

Jump to

Keyboard shortcuts

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