rand

package
v1.2.0-alpha.2....-4f17b4b Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2015 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package rand provides utilities related to randomization.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Perm

func Perm(n int) []int

Perm returns, as a slice of n ints, a pseudo-random permutation of the integers [0,n) from the default Source.

func Seed

func Seed(seed int64)

Seed seeds the rng with the provided seed.

func String

func String(n int) string

String generates a random alphanumeric string n characters long. This will panic if n is less than zero.

Types

This section is empty.

Jump to

Keyboard shortcuts

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