Discover Packages
github.com/DirectXMan12/client-go
pkg
util
rand
package
Version:
v2.0.0+incompatible
Opens a new window with list of versions in this module.
Published: Feb 13, 2017
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0 modules, 0 packages
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.
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package rand provides utilities related to randomization.
IntnRange generates an int64 integer in range [min,max).
By design this should panic if input is invalid, <= 0.
Intn generates an integer in range [0,max).
By design this should panic if input is invalid, <= 0.
func IntnRange(min, max int ) int
IntnRange generates an integer in range [min,max).
By design this should panic if input is invalid, <= 0.
Perm returns, as a slice of n ints, a pseudo-random permutation of the integers [0,n)
from the default Source.
Seed seeds the rng with the provided seed.
String generates a random alphanumeric string, without vowels, which is n
characters long. This will panic if n is less than zero.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.