Discover Packages
github.com/forain/redis/v8
internal
rand
package
Version:
v8.4.5
Opens a new window with list of versions in this module.
Published: Jan 8, 2021
License: BSD-2-Clause
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Int returns a non-negative pseudo-random int.
Int63n returns, as an int64, a non-negative pseudo-random number in [0,n).
It panics if n <= 0.
Intn returns, as an int, a non-negative pseudo-random number in [0,n).
It panics if n <= 0.
Perm returns, as a slice of n ints, a pseudo-random permutation of the integers [0,n).
Seed uses the provided seed value to initialize the default Source to a
deterministic state. If Seed is not called, the generator behaves as if
seeded by Seed(1).
Source Files
¶
Click to show internal directories.
Click to hide internal directories.