rand

package
v0.0.0-...-3d984ba Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 29, 2018 License: BSD-3-Clause Imports: 0 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳