rand

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Seeded

type Seeded interface {
	// Intn returns, as an int, a non-negative pseudo-random number in [0,max). It
	// panics if max <= 0.
	Intn(max int) int
	// Float64 returns, as a float64, a pseudo-random number in [0.0,1.0).
	Float64() float64
}

Seeded is an interface for seeded, concurrency-safe random number generators.

func NewSeeded

func NewSeeded() Seeded

NewSeeded returns a seeded, concurrency-safe random number generator.

Jump to

Keyboard shortcuts

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