gonumext

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 6, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL