mt

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: May 26, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MT64

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

func NewMT64

func NewMT64() *MT64

func (*MT64) Float64

func (mt *MT64) Float64() float64

The method to generate a float64 on [0, 1)

func (*MT64) GenRand64

func (m *MT64) GenRand64() uint64

func (*MT64) InitByArray

func (m *MT64) InitByArray(initKey []uint64)

func (*MT64) InitGenRand

func (m *MT64) InitGenRand(seed uint64)

func (*MT64) Int63

func (mt *MT64) Int63() int64

The method to generate a non-negative 63bit integer

func (*MT64) RealC0C1

func (mt *MT64) RealC0C1() float64

The method to generate a float64 on [0, 1]

func (*MT64) RealC0O1

func (mt *MT64) RealC0O1() float64

The method to generate a float64 on [0, 1)

func (*MT64) RealO0O1

func (mt *MT64) RealO0O1() float64

The method to generate a float64 on (0, 1)

func (*MT64) Seed

func (m *MT64) Seed(seed int64)

func (*MT64) UInt64

func (mt *MT64) UInt64() uint64

The method to generate a non-negative 63bit integer

Jump to

Keyboard shortcuts

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