Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type XorShift ¶
type XorShift interface {
Next() uint64
}
A generic xorshift PRNG interface
func NewXorShift64Star ¶
Return a xorshift64* generator with a period of 2^64 - 1 Use this only as a seed generator for other PRNGs Reference: http://vigna.di.unimi.it/ftp/papers/xorshift.pdf
func NewXorShift128Plus ¶
Return a xorshift128+ generator with a period of 2^128 - 1 Reference: http://vigna.di.unimi.it/ftp/papers/xorshiftplus.pdf
func NewXorShift1024Star ¶
Return a xorshift1024* generator with a period of 2^1024 - 1 Reference: http://vigna.di.unimi.it/ftp/papers/xorshift.pdf
type XorShift64Star ¶
type XorShift64Star struct {
// contains filtered or unexported fields
}
func (*XorShift64Star) Next ¶
func (x *XorShift64Star) Next() uint64
type XorShift128Plus ¶
type XorShift128Plus struct {
// contains filtered or unexported fields
}
func (*XorShift128Plus) Next ¶
func (x *XorShift128Plus) Next() uint64
type XorShift1024Star ¶
type XorShift1024Star struct {
// contains filtered or unexported fields
}
func (*XorShift1024Star) Next ¶
func (x *XorShift1024Star) Next() uint64
Source Files
¶
Click to show internal directories.
Click to hide internal directories.