random

package
v0.0.0-...-6291adc Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Lcg

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

func NewLcg

func NewLcg() *Lcg

func (*Lcg) Next

func (ls *Lcg) Next() float64

type State

type State struct {
	Lcg *Lcg
	Mt  *rand.Rand
}

func New

func New() *State

func (*State) MtSeed

func (s *State) MtSeed(seed int64)

Jump to

Keyboard shortcuts

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