package
module
Version:
v0.0.0-...-129dfe0
Opens a new window with list of versions in this module.
Published: Jan 12, 2021
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package rand provides useful helper functions for math/rand.
Chance evalutates a probability.
Range returns a random number in the range [a, b).
RangeInt returns a random integer in the range [a, b).
Seed uses the provided seed value to initialize the generator to a deterministic state.
Rand is a source of random numbers with some helper functions.
New returns a new Rand with the given seed.
Chance evalutates a probability.
func (*Rand) Range ¶
Range returns a random number in the range [a, b).
RangeInt returns a random integer in the range [a, b).
Source Files
¶
Click to show internal directories.
Click to hide internal directories.