randomKit

package
v2.0.6 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package randomKit

有两个标准库("math/rand"、"crypto/rand"),建议使用第一个,更加全面.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool() bool

func Float64

func Float64(places int32) float64

Float64

@param places 保留的小数位

@return [0.0, 1.0)

func Int

func Int(max int) int

Int

@param n > 0(否则会panic)

@return 返回[0, max)范围内的随机数

Types

This section is empty.

Jump to

Keyboard shortcuts

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