Documentation ¶
Overview ¶
Package gonumext provides constructors for random factories using some of the algorithms provided by the Gonum PRNG library.
It is provided as a separate package here so that users who do not need it do not bring in Gonum as a dependency when they use our rand package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMersenneTwister64Factory ¶
func NewMersenneTwister64Factory(seeder rand.Seeder) *rand.ExpRandFactory
NewMersenneTwister64Factory creates a factory for producing RNGs using the common Mersenne Twister with the Mersenne prime 2^19937-1 and 64-bit word length. Each RNG it produces will be seeded with the given seeder.
func NewMersenneTwisterFactory ¶
func NewMersenneTwisterFactory(seeder rand.Seeder) *rand.ExpRandFactory
NewMersenneTwisterFactory creates a factory for producing RNGs using the common Mersenne Twister with the Mersenne prime 2^19937-1. Each RNG it produces will be seeded with the given seeder.
Types ¶
This section is empty.