random

package
v0.0.0-...-d51f9a1 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RandBool

func RandBool(r *Rand) bool

func RandByCorpus

func RandByCorpus[T any](r *Rand, corpus []T) T

func RandIntMinMax

func RandIntMinMax(r *Rand, min, max int) int

Types

type Rand

type Rand = rand.Rand

func NewRandNext

func NewRandNext() *Rand

func NewRandNow

func NewRandNow() *Rand

func NewRandSeed

func NewRandSeed(seed int64) *Rand

func NewRandTime

func NewRandTime(t time.Time) *Rand

Jump to

Keyboard shortcuts

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