Documentation ¶
Index ¶
- func Choice[T any](inp []T) T
- func ListChoices[T any](inp []T, count int, unsorted bool) []T
- func ListChoicesIter[T any](inp []T, count int, unsorted bool) defcon.ListIterator[T]
- func ListShuffleIter[T any](inp []T) defcon.ListIterator[T]
- func MapChoice[K comparable, V any](inp map[K]V) (K, V, bool)
- func MapChoicesIter[K comparable, V any](inp map[K]V, count int) defcon.MapIterator[K, V]
- func SignedCryptoRandBetween[T constraints.Signed](l, r T) T
- func SignedMathRandBetween[T constraints.Signed](l, r T) T
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListChoices ¶
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.
Click to show internal directories.
Click to hide internal directories.