xint

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculateRedPacketProbability

func CalculateRedPacketProbability(grade uint8) int

CalculateRedPacketProbability 传递概率分布的档次,获取概率值落在哪个区间

func CalculateRedPacketRatio

func CalculateRedPacketRatio(grade uint8) float64

CalculateRedPacketRatio 传递概率分布的档次,获得该区间的基础红包系数

func RandInt

func RandInt(min, length int) int

Types

This section is empty.

Jump to

Keyboard shortcuts

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