Documentation ¶
Overview ¶
Package xoroshiro256starstar (XOR/rotate/shift/rotate) all-purpose generator with 256 bits internal state.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type XoroShiro256StarStar ¶
type XoroShiro256StarStar struct {
// contains filtered or unexported fields
}
XoroShiro256StarStar holds the state required by XoroShiro256StarStar generator
func NewSource ¶
func NewSource(seed int64) *XoroShiro256StarStar
NewSource return a new XoroShiro256StarStar random number generator
func (*XoroShiro256StarStar) Int63 ¶
func (x *XoroShiro256StarStar) Int63() int64
Int63 returns a non-negative pseudo-random 63-bit integer as an int64.
func (*XoroShiro256StarStar) Jump ¶
func (x *XoroShiro256StarStar) Jump()
Jump it is equivalent to 2^128 calls to Uint64().
func (*XoroShiro256StarStar) Seed ¶
func (x *XoroShiro256StarStar) Seed(seed int64)
Seed use the provvided seed value to init XoroShiro256StarStar internal state.
func (*XoroShiro256StarStar) Uint64 ¶
func (x *XoroShiro256StarStar) Uint64() uint64
Uint64 returns the next pseudo random number generated, before start you must provvide seed.
Click to show internal directories.
Click to hide internal directories.