crandom

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package crandom provides methods to generate random numbers and strings

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateRandomNumberBetween

func GenerateRandomNumberBetween(start, end uint) uint64

GenerateRandomNumberBetween generates a random positive number between the given range.

func GenerateRandomNumericalCode

func GenerateRandomNumericalCode(codeLen uint) uint64

GenerateRandomNumericalCode generates a positive random number of the given length.

func GenerateRandomString

func GenerateRandomString(n uint) string

GenerateRandomString generates a random string of the given length.

Types

This section is empty.

Jump to

Keyboard shortcuts

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