helpers

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RandFloat

func RandFloat(minimum float64, maximum float64, precision int) float64

Returns a random float between [minimum;maximum] and rounds to precision precision.

func RandInt

func RandInt(minimum int, maximum int) int

func RandIntExcluding

func RandIntExcluding(minimum int, maximum int, excluding int) int

func RandNumericString

func RandNumericString(length int) string

func RandOriginal

func RandOriginal(tmp string, tmp1 string) string

Puts string tmp1 at a random position of tmp string

func RandString

func RandString(length int) string

func SelectUniqueIds

func SelectUniqueIds(numUnique int, minimum int, maximum int) []int

Types

This section is empty.

Jump to

Keyboard shortcuts

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