Documentation ¶
Overview ¶
Package randstat provides replacements for math/rand functions and methods.
The functions in this package are designed to be faster than their counterparts in math/rand, and consume (in expectation) fewer random numbers from their Source. Because they use different algorithms, they produce different sequences of random numbers.
The subpackages provide various random number generators and sampling algorithms.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Float64 ¶
Float64 returns a pseudo-random number in the interval [0,1), given a uniformly random integer.
Unlike the rand.Rand.Float64 method, this function consumes exactly one random integer from the source r.
func Int31n ¶
Int31n returns a uniformly random integer from the range [0,n).
n must be greater than 0. r must not be nil.
func Int63n ¶
Int63n returns a uniformly random integer from the range [0,n).
n must be greater than 0. r must not be nil.
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
internal
|
|
sums
Package sums implements summation algorithms.
|
Package sums implements summation algorithms. |
Package sampling implements random sampling algorithms.
|
Package sampling implements random sampling algorithms. |
Package splitmix64 implements the SplitMix64 random number generator.
|
Package splitmix64 implements the SplitMix64 random number generator. |
Package xoshiro256 implements the xoshiro256** random number generator.
|
Package xoshiro256 implements the xoshiro256** random number generator. |