random

package
v0.0.64 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2024 License: Apache-2.0, MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Float64

func Float64() float64

Float64 returns a random float64 between 0 and 1.

func Intn

func Intn(n int) int

Intn returns a random int >=0 and < n.

func Jitter

func Jitter(d time.Duration) time.Duration

Jitter returns a randomly-chosen duration between d and 2d.

func String

func String() string

String returns a random string, 20 characters long.

Types

This section is empty.

Jump to

Keyboard shortcuts

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