package
Version:
v1.11.1
Opens a new window with list of versions in this module.
Published: Mar 21, 2024
License: Apache-2.0
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
¶
Package rand is used for concurrency safe random number generator.
Rand is used for concurrency safe random number generator.
New returns a new Rand from seed.
func (*Rand) Int ¶
Int returns a non-negative pseudo-random int from the Source in Rand.r.
func (*Rand) Perm ¶
Perm returns, as a slice of n ints, a pseudo-random permutation of the
integers in the half-open interval [0,n) from the Source in Rand.r.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.