randomx

package
v0.0.0-...-1db1413 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2020 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Float32

func Float32() float32

Float32 will generate a random float32 value

func Float32Range

func Float32Range(min, max float32) float32

Float32Range will generate a random float32 value between min and max

func Float64

func Float64() float64

Float64 will generate a random float64 value

func Float64Range

func Float64Range(min, max float64) float64

Float64Range will generate a random float64 value between min and max

func Int16

func Int16() int16

Int16 will generate a random int16 value

func Int32

func Int32() int32

Int32 will generate a random int32 value

func Int64

func Int64() int64

Int64 will generate a random int64 value

func Int8

func Int8() int8

Int8 will generate a random Int8 value

func Number

func Number(min int, max int) int

Number will generate a random number between given min And max

func RandFloat32Range

func RandFloat32Range(min, max float32) float32

func RandFloat64Range

func RandFloat64Range(min, max float64) float64

func RandIntRange

func RandIntRange(min, max int) int

Generate random integer between min and max

func RandomBytes

func RandomBytes(size int) []byte

func RandomIntChoice

func RandomIntChoice(data []int) int

func RandomStringsChoice

func RandomStringsChoice(data []string) string

func Uint16

func Uint16() uint16

Uint16 will generate a random uint16 value

func Uint32

func Uint32() uint32

Uint32 will generate a random uint32 value

func Uint64

func Uint64() uint64

Uint64 will generate a random uint64 value

func Uint8

func Uint8() uint8

Uint8 will generate a random uint8 value

Types

This section is empty.

Jump to

Keyboard shortcuts

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