randomKit

package
v2.1.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Intn 随机生成int类型的值.
	/*
		@return 范围: [0, max)
	*/
	Intn func(max int) int = grand.Intn

	// Int 随机生成int类型的值.
	/*
	   @return 范围: [min, max]
	*/
	Int func(min, max int) int = grand.N
)
View Source
var (
	// Duration
	/*
		@return a random time.Duration between min and max: [min, max]
	*/
	Duration func(min, max time.Duration) time.Duration = grand.D
)

Functions

func Bool

func Bool() bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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