Documentation
¶
Overview ¶
Package pcg32 implements the PCG-32 random number generator.
Index ¶
- type PCG32
- func (p *PCG32) Float32() float32
- func (p *PCG32) Float64() float64
- func (p *PCG32) Int(n int) int
- func (p *PCG32) Int32() int32
- func (p *PCG32) Marshal() ([]byte, error)
- func (p *PCG32) Next() uint32
- func (p *PCG32) Reset()
- func (p *PCG32) Seed(seed uint64)
- func (p *PCG32) State() (uint64, uint64)
- func (p *PCG32) Unmarshal(data []byte) error
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
}
PCG32 represents the state of a PCG-32 random number generator.
func (*PCG32) Marshal ¶
Marshal returns the binary encoding of the current state of the random number generator.
func (*PCG32) Reset ¶
func (p *PCG32) Reset()
Reset resets the state of the random number generator to the seed value.
func (*PCG32) Seed ¶
Seed initializes the state of the random number generator with the given seed value.
Click to show internal directories.
Click to hide internal directories.