util

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateNumberArray

func GenerateNumberArray(min, max int, randomly bool) []int

Function to generate numbers from min to max, including min but excluding max, optionally in a random order.

func RandomBool

func RandomBool(p float64) bool

Function to return true with a probability of p.

func ShuffleArray

func ShuffleArray[T any](array []T)

Function to shuffle a slice of arrays in place.

Types

This section is empty.

Jump to

Keyboard shortcuts

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