random

package
v0.0.0-...-55d7ca3 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenFloat64

func GenFloat64(max float64) (float64, error)

func GenFloat64InRange

func GenFloat64InRange(min, max float64) (float64, error)

func GenFloat64Norm

func GenFloat64Norm(stdDev, mean float64) (float64, error)

GenFloat64Norm generate random float64 with norm

stdDev -standart deviation - σ^2; default = 1

mean - μ (In probability theory, the expected value is a generalization of the weighted average.); default = 0

func GenFloat64NormInRange

func GenFloat64NormInRange(min, max, stdDev, mean float64) (float64, error)

func GenInt

func GenInt(max int) (int, error)

func GenIntInRange

func GenIntInRange(min int, max int) (int, error)

func GenNanoString

func GenNanoString(l int) (string, error)

func GenUUID

func GenUUID() uuid.UUID

func GenUUIDString

func GenUUIDString() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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