algo

package
v0.0.25 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AfterShuffle

func AfterShuffle(count, amount int64) []int64

func BeforeShuffle

func BeforeShuffle(count, amount int64) int64

先洗牌算法

func DoubleAverage

func DoubleAverage(count, amount int64) int64

二倍均值算法

func DoubleRandom

func DoubleRandom(count, amount int64) int64

二次随机算法

func SimpleRand

func SimpleRand(count, amount int64) int64

简单随机算法 红包的数量,红包金额 金额单位为分,1元钱=100分

Types

This section is empty.

Jump to

Keyboard shortcuts

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