random

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2022 License: MIT Imports: 4 Imported by: 2

Documentation

Overview

Package random implements some basic functions to generate random int and string.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RandBytes

func RandBytes(length int) []byte

RandBytes generate random byte slice

func RandInt

func RandInt(min, max int) int

RandInt generate random int between min and max, maybe min, not be max

Types

This section is empty.

Jump to

Keyboard shortcuts

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