random

package module
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2023 License: MIT Imports: 2 Imported by: 0

README

Go Reference

random helper

import "git.hansaray.pw/go/random"


var randString = random.String(5, 5, true)

Documentation

Overview

uid, rand number, random strings, Shuffle, Reverse

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Int added in v0.1.1

func Int(min, max int) int

generates a random number between min and max

func Reverse

func Reverse(s string) string

Reverses a string

func Shuffle

func Shuffle(s string) string

Shuffles the string

func String added in v0.1.1

func String(min, max int, readable bool) string

generates a random string

func Uid

func Uid(no int) string

func Uid16

func Uid16() string

func Uid8

func Uid8() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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