rand

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

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

Go to latest
Published: May 13, 2026 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package rand backports the subset of math/rand/v2 used by Tailscale.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Float64

func Float64() float64

func IntN

func IntN(n int) int

func N

func N[T constraints.Integer](n T) T

func Shuffle

func Shuffle(n int, swap func(i, j int))

func Uint64

func Uint64() uint64

Types

type PCG

type PCG struct {
	// contains filtered or unexported fields
}

func (*PCG) Seed

func (p *PCG) Seed(seed1, seed2 uint64)

func (*PCG) Uint64

func (p *PCG) Uint64() uint64

Jump to

Keyboard shortcuts

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