randutil

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2024 License: MPL-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DurationBetween added in v0.12.0

func DurationBetween(lowerLimit, upperLimit time.Duration) time.Duration

DurationBetween generates a random duration in the range of [lowerLimit, upperLimit).

func Hex added in v0.12.0

func Hex(length int) string

func IntBetween

func IntBetween(lowerLimit, upperLimit int) int

IntBetween generates a random number in the range of [lowerLimit, upperLimit).

Types

This section is empty.

Jump to

Keyboard shortcuts

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