Documentation ¶
Index ¶
- func Array[T any](arr []T) []T
- func Bytes(size int) []byte
- func IsRanded(weight int32, opts ...Option) bool
- func NewLockedSource(seed int64) rand.Source
- func RandomElement[T any](arr []T) T
- func RandomInRange(min, max int64) int64
- func RandomSubset[T int | int32 | int64](min, max T, n int) []T
- func String(size int) string
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLockedSource ¶
func RandomElement ¶
func RandomElement[T any](arr []T) T
func RandomInRange ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.