pcg

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2019 License: MIT Imports: 0 Imported by: 2

Documentation

Overview

Package pcg is an internal package used by github.com/addrummond/iskiplist. Taken from https://raw.githubusercontent.com/MichaelTJones/pcg/d8d8f855137947b55fa38d4fe7489ed05bdc14fd/pcg32.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pcg32

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

func NewPCG32

func NewPCG32() *Pcg32

func (*Pcg32) Advance

func (p *Pcg32) Advance(delta uint64) *Pcg32

func (*Pcg32) Bounded

func (p *Pcg32) Bounded(bound uint32) uint32

func (*Pcg32) IsUninitialized

func (p *Pcg32) IsUninitialized() bool

IsUninitialized returns true iff the Pcg32 struct has not been initialized. (Added by addrummond.)

func (*Pcg32) Random

func (p *Pcg32) Random() uint32

func (*Pcg32) Retreat

func (p *Pcg32) Retreat(delta uint64) *Pcg32

func (*Pcg32) Seed

func (p *Pcg32) Seed(state, sequence uint64) *Pcg32

Jump to

Keyboard shortcuts

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