Documentation ¶
Overview ¶
Package xoroshiro128starstar (XOR/rotate/shift/rotate) all-purpose generator with 128 bits internal state.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type XoroShiro128StarStar ¶
type XoroShiro128StarStar struct {
// contains filtered or unexported fields
}
XoroShiro128StarStar holds the state required by XoroShiro128StarStar generator
func NewSource ¶
func NewSource(seed int64) *XoroShiro128StarStar
NewSource return a new XoroShiro128StarStar random number generator
func (*XoroShiro128StarStar) Int63 ¶
func (x *XoroShiro128StarStar) Int63() int64
Int63 returns a non-negative pseudo-random 63-bit integer as an int64.
func (*XoroShiro128StarStar) Jump ¶
func (x *XoroShiro128StarStar) Jump()
Jump it is equivalent to 2^64 calls to Uint64().
func (*XoroShiro128StarStar) Seed ¶
func (x *XoroShiro128StarStar) Seed(seed int64)
Seed use the provvided seed value to init XoroShiro128StarStar internal state.
func (*XoroShiro128StarStar) Uint64 ¶
func (x *XoroShiro128StarStar) 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.