random

package
v0.0.0-...-1c0ff78 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Choice

func Choice[T any](inp []T) T

func ListChoices

func ListChoices[T any](inp []T, count int, unsorted bool) []T

func ListChoicesIter

func ListChoicesIter[T any](inp []T, count int, unsorted bool) defcon.ListIterator[T]

func ListShuffleIter

func ListShuffleIter[T any](inp []T) defcon.ListIterator[T]

func MapChoice

func MapChoice[K comparable, V any](inp map[K]V) (K, V, bool)

func MapChoicesIter

func MapChoicesIter[K comparable, V any](inp map[K]V, count int) defcon.MapIterator[K, V]

func SignedCryptoRandBetween

func SignedCryptoRandBetween[T constraints.Signed](l, r T) T

func SignedMathRandBetween

func SignedMathRandBetween[T constraints.Signed](l, r T) T

Types

This section is empty.

Jump to

Keyboard shortcuts

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