rand

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2020 License: MIT Imports: 3 Imported by: 1 module, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Rand

This package implements random generator functions to support other projects

Documentation

Overview

Package rand contains helper random generator functions to be used around

Package rand contains helper random generator functions to be used around

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Int

func Int(digits int) int

Int returns a random int with n digits

func String

func String(length int) string

String returns a random string with n length source http://stackoverflow.com/questions/22892120/how-to-generate-a-random-string-of-a-fixed-length-in-golang

func StringPrefix

func StringPrefix(length int, prefix string) string

StringPrefix returns random string with chosen prefix

func StringSuffix

func StringSuffix(length int, suffix string) string

StringSuffix returns random string with chosen sufix

Types

This section is empty.

Jump to

Keyboard shortcuts

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