random

package
v0.45.0 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2025 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bytes

func Bytes(b []byte)

Write randomn bytes into the provided slice

func Choice

func Choice[T any](items ...T) T

Return one of items randomnly

func Int

func Int[T constraints.Integer](limit T) T

Return a random integer in the range [0, limit). limit must be > 0

Types

This section is empty.

Jump to

Keyboard shortcuts

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