Documentation
¶
Overview ¶
Package rand provides utilities related to randomization.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Intn ¶ added in v1.1.2
Intn generates an integer in range 0->max. By design this should panic if input is invalid, <= 0.
func Perm ¶ added in v1.0.8
Perm returns, as a slice of n ints, a pseudo-random permutation of the integers [0,n) from the default Source.
Types ¶
This section is empty.
Source Files
¶
- rand.go
Click to show internal directories.
Click to hide internal directories.