RandomHelper

package
v1.1.162 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RandomAroundFloat64

func RandomAroundFloat64(min, max float64) float64

func RandomAroundFloat64Seed added in v1.1.44

func RandomAroundFloat64Seed(seed int64, min, max float64) float64

* 自定义随机因子

func RandomAroundInt

func RandomAroundInt(min, max int) (int, error)

func RandomAroundInt32

func RandomAroundInt32(min, max int32) (int32, error)

func RandomAroundInt32Seed added in v1.1.44

func RandomAroundInt32Seed(seed int64, min, max int32) (int32, error)

* 自定义随机因子了

func RandomAroundInt64

func RandomAroundInt64(min, max int64) (int64, error)

func RandomAroundIntSeed added in v1.1.44

func RandomAroundIntSeed(seed int64, min, max int) (int, error)

* 自定义随机因子

Types

This section is empty.

Jump to

Keyboard shortcuts

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