rng

package
v0.0.0-...-c85336e Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 7 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 struct {
	// contains filtered or unexported fields
}

func New

func New() *Rng

func (*Rng) BigInt

func (rng *Rng) BigInt(n *big.Int) *big.Int

Returns a random BigInt in the range [1, n-1]

func (*Rng) Bytes

func (rng *Rng) Bytes(size int) []byte

func (*Rng) Int

func (rng *Rng) Int(n int) int

func (*Rng) Int32

func (rng *Rng) Int32(n int32) int32

func (*Rng) Int64

func (rng *Rng) Int64(n int64) int64

func (*Rng) Uint64

func (rng *Rng) Uint64() uint64

Jump to

Keyboard shortcuts

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