rng

package
v0.0.0-...-b7ca9ae Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RNG

type RNG interface {
	RandInt(max int) int
}

type SecureRNG

type SecureRNG struct{}

func (*SecureRNG) RandInt

func (s *SecureRNG) RandInt(max int) int

type SeededRNG

type SeededRNG struct {
	Rand *mathrand.Rand
}

func (*SeededRNG) RandInt

func (i *SeededRNG) RandInt(max int) int

Jump to

Keyboard shortcuts

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