rand

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2016 License: BSD-2-Clause, MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Duration

func Duration(d time.Duration) time.Duration

Duration returns, a pseudo-random duration in [0,d) from the default Source. It panics if d <= 0.

func PermInt added in v0.2.0

func PermInt(x []int) []int

PermInt permutates a given slice of integers and returns a new slice.

func PermIntInplace added in v0.2.0

func PermIntInplace(x []int)

PermIntInplace permutates a given slice of integers in-place.

func PermString added in v0.2.0

func PermString(x []string) []string

PermString permutates a given slice of integers and returns a new slice.

func PermStringInplace added in v0.2.0

func PermStringInplace(x []string)

PermStringInplace permutates a given slice of integers in-place.

Types

This section is empty.

Jump to

Keyboard shortcuts

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