random

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRNG

func GetRNG() *mrand.Rand

GetRNG returns truly random math.Rand.

Types

type Source

type Source struct{}

Source is custom source for the random generator.

func (*Source) Int63

func (s *Source) Int63() int64

Int63 returns random int64.

func (*Source) Seed

func (*Source) Seed(int64)

Seed has no operations, need to satisfy rand.Source interface.

func (*Source) Uint64

func (s *Source) Uint64() uint64

Uint64 returns random uint64.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL