Documentation
¶
Index ¶
- func Bet_init(out *rpc.SlotGameStartRes)
- func ChooseWeightItem(candidates []int, luckyValue int32) int
- func Drop(d map[int32]int32) (key int32)
- func GenerateRandomNumber(start int, end int, count int, seed int64) []int
- func Hit(probability int) bool
- func IceRand(count int32, arr []*rpc.XY)
- func Int31() int32
- func Int31n(limit interface{}) int32
- func Intn(limit int) int
- func IsBonus(arr []*rpc.XY) bool
- func Perm(limit int, seed int64) []int
- func RangeFloat32(min, max float32) float32
- func RangeInt(start int, end int, seed int64) int
- func RangeIntWithout(start int, end int, seed int64, without int, i int32) int
- func Round32(f float32, n int) float32
- func Round64(f float64, n int) float64
- func Sample(m map[int32]int32) int32
- func SampleN(m map[int32]int32, n int) []int32
- func SlotGameRand(in *rpc.SlotGameStartRes) (err error, out *rpc.SlotGameStartRes)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Bet_init ¶
func Bet_init(out *rpc.SlotGameStartRes)
func ChooseWeightItem ¶
ChooseWeightItem choose one index from giving array 'candidates'
func GenerateRandomNumber ¶
生成count个[start,end)结束的不重复的随机数
func RangeFloat32 ¶
RangeFloat32 返回[min, max]之间的float32 放大factor倍后用Int63n随机
func RangeIntWithout ¶
在[start,end]之间随机生成一个不等于without的数
func SlotGameRand ¶
func SlotGameRand(in *rpc.SlotGameStartRes) (err error, out *rpc.SlotGameStartRes)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.