random

package
v0.0.0-...-324a32f Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2018 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultSeed uint32 = 5489

	// MT19937_N is the number of elements in the internal state
	MT19937_N = n
)

Variables

This section is empty.

Functions

This section is empty.

Types

type MT19937

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

func NewMT19937Random

func NewMT19937Random() *MT19937

func (*MT19937) Next

func (mt *MT19937) Next() uint32

func (*MT19937) Seed

func (mt *MT19937) Seed(s uint32) *MT19937

type MT19937Cloner

type MT19937Cloner struct {
	MT19937
}

func NewMT19937Cloner

func NewMT19937Cloner() *MT19937Cloner

func (*MT19937Cloner) Feed

func (c *MT19937Cloner) Feed(value uint32) bool

func (*MT19937Cloner) Get

func (c *MT19937Cloner) Get() *MT19937

Jump to

Keyboard shortcuts

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