utils

package
v3.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RandomColorHex

func RandomColorHex(rng *rand.Rand) string

RandomColorHex returns a random string in the hex-color format "#xxxxxx" (e.g. "#FF0A12")

func RandomRangeFloat

func RandomRangeFloat(rng *rand.Rand, min, max float64) float64

RandomRangeFloat returns a random float min <= x <= max

func RandomRangeInt

func RandomRangeInt(rng *rand.Rand, min, max int) int

RandomRangeInt returns a random int min <= x < max

Types

This section is empty.

Jump to

Keyboard shortcuts

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