rng

package
v0.4.36 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Rand

type Rand interface {
	Int63n(n int64) int64
	Intn(n int) int
	Float64() float64
}

type Randomizer

type Randomizer struct {
	// contains filtered or unexported fields
}

func New

func New(seed int64) *Randomizer

func (*Randomizer) Float64

func (r *Randomizer) Float64() float64

func (*Randomizer) Int63n

func (r *Randomizer) Int63n(n int64) int64

func (*Randomizer) Intn

func (r *Randomizer) Intn(n int) int

Jump to

Keyboard shortcuts

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