pcg: github.com/MichaelTJones/pcg Index | Files

package pcg

import "github.com/MichaelTJones/pcg"

Index

Package Files

pcg32.go pcg64.go

type PCG32 Uses

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

func NewPCG32 Uses

func NewPCG32() *PCG32

func (*PCG32) Advance Uses

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

func (*PCG32) Bounded Uses

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

func (*PCG32) Random Uses

func (p *PCG32) Random() uint32

func (*PCG32) Retreat Uses

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

func (*PCG32) Seed Uses

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

type PCG64 Uses

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

func NewPCG64 Uses

func NewPCG64() *PCG64

func (*PCG64) Advance Uses

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

func (*PCG64) Bounded Uses

func (p *PCG64) Bounded(bound uint64) uint64

func (*PCG64) Random Uses

func (p *PCG64) Random() uint64

func (*PCG64) Retreat Uses

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

func (*PCG64) Seed Uses

func (p *PCG64) Seed(state1, state2, sequence1, sequence2 uint64) *PCG64

Package pcg is imported by 10 packages. Updated 2018-02-24. Refresh now. Tools for package owners.