Documentation
¶
Overview ¶
Package rand provides functions that can be used to generate pseudorandom numbers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type XorShift64 ¶
type XorShift64 struct {
// contains filtered or unexported fields
}
XorShift64 is 64-bit xorshift* pseudorandom number generator. See http://en.wikipedia.org/wiki/Xorshift for more informations.
func (*XorShift64) Int32 ¶
func (g *XorShift64) Int32() int32
Int32 returns pseudorandom int32 number.
func (*XorShift64) Int64 ¶
func (g *XorShift64) Int64() int64
Int64 returns pseudorandom int64 number.
func (*XorShift64) Seed ¶
func (g *XorShift64) Seed(seed int64)
Seed initializes XorShift64 state. seed must not be zero.
func (*XorShift64) Uint32 ¶
func (g *XorShift64) Uint32() uint32
Uint32 returns pseudorandom uint32 number.
func (*XorShift64) Uint64 ¶
func (g *XorShift64) Uint64() uint64
Uint64 returns pseudorandom uint64 number.
Click to show internal directories.
Click to hide internal directories.