rand

package
v2.7.6 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LockedSource

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

LockedSource is taken from the Go "math/rand" package. The default rand functions use a similar type under the hood, this does not introduce any additional locking than using the default functions.

func NewLockedSourceFromSeed

func NewLockedSourceFromSeed(seed int64) *LockedSource

func (*LockedSource) Int63

func (r *LockedSource) Int63() (n int64)

func (*LockedSource) Seed

func (r *LockedSource) Seed(seed int64)

Jump to

Keyboard shortcuts

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