Help us shape the future of Go! Take the 2026 Go Developer Survey

random

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2023 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InitialStateConstant0 = 0x40336050
	InitialStateConstant1 = 0xCFA3723C
	InitialStateConstant2 = 0x3CAC5F6F
	InitialStateConstant3 = 0x3793FDFF

	TinyMT32SH0   = 1
	TinyMT32SH1   = 10
	TinyMT32Mask  = 0x7FFFFFFF
	TinyMT32Alpha = 0x19660D
	TinyMT32Bravo = 0x5D588B65
)

Variables

This section is empty.

Functions

func ManipulateAlpha

func ManipulateAlpha(value uint32) uint32

func ManipulateBravo

func ManipulateBravo(value uint32) uint32

Types

type NumberGenerator

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

func NewRNG

func NewRNG() *NumberGenerator

func (*NumberGenerator) Generate

func (g *NumberGenerator) Generate(min uint32, max uint32) uint32

func (*NumberGenerator) GenerateNextState

func (g *NumberGenerator) GenerateNextState()

func (*NumberGenerator) GenerateSingle

func (g *NumberGenerator) GenerateSingle(exclusiveMaximumValue uint32) uint32

func (*NumberGenerator) GenerateUInt

func (g *NumberGenerator) GenerateUInt() uint32

func (*NumberGenerator) Initialize

func (g *NumberGenerator) Initialize(seeds []uint32)

func (*NumberGenerator) Reset added in v0.13.0

func (g *NumberGenerator) Reset(passiveSkill *data.PassiveSkill, timelessJewel data.TimelessJewel)

func (*NumberGenerator) Temper

func (g *NumberGenerator) Temper() uint32

Jump to

Keyboard shortcuts

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