rng

package
v0.0.0-...-fd248e6 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2025 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