sources

package
v0.0.25 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 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 GoSource

type GoSource struct {
	rand.Source
	// contains filtered or unexported fields
}

func NewGoSource

func NewGoSource(src rand.Source) *GoSource

func (*GoSource) Intn

func (r *GoSource) Intn(n int) int

func (*GoSource) Uint32

func (r *GoSource) Uint32() uint32

func (*GoSource) Uint64

func (r *GoSource) Uint64() uint64

type WELL512

type WELL512 struct {
	State  [16]uint32
	Cursor uint8
}

func NewWELL512

func NewWELL512(seed uint32) *WELL512

func (*WELL512) Int63

func (w *WELL512) Int63() int64

func (*WELL512) Intn

func (w *WELL512) Intn(n int) int

func (*WELL512) Seed

func (w *WELL512) Seed(seed int64)

func (*WELL512) Uint32

func (w *WELL512) Uint32() uint32

func (*WELL512) Uint64

func (w *WELL512) Uint64() uint64

Jump to

Keyboard shortcuts

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