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