random

package
v0.0.0-...-e65efa9 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenRandomString

func GenRandomString(length int, charset string) (rs string)

func GetRandBit

func GetRandBit(bitNum int) int

func RandByte

func RandByte(bNum int) (b []byte)

func RandomChoice

func RandomChoice(population interface{}) (interface{}, error)

func RandomChoices

func RandomChoices(population interface{}, repeat int) (choices []interface{}, err error)

func RandomInt

func RandomInt(minNum, maxNum int) (s int)

Types

This section is empty.

Jump to

Keyboard shortcuts

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