randomizer

package
v0.1.48 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: MIT Imports: 4 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Random

type Random interface {
	RandomNumberBaseZero(length int) int
	RandomNumberBaseOne(length int) int
}

type Randomizer

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

func NewRandomizerClient

func NewRandomizerClient() (*Randomizer, error)

func (*Randomizer) RandomNumberBaseOne

func (r *Randomizer) RandomNumberBaseOne(length int) int

RandomNumberBaseOne creates a random number starting from 1 to length (example length = 2 -> 1 or 2)

func (*Randomizer) RandomNumberBaseZero

func (r *Randomizer) RandomNumberBaseZero(length int) int

RandomNumberBaseZero creates a random number starting from 0 to length - 1 (example length = 2 -> 0 or 1)

Jump to

Keyboard shortcuts

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