Registry / utility / seehuhn-mt19937

seehuhn-mt19937

JSON →
library1.0.0gogounverified

A pure-Go implementation of the 64-bit Mersenne Twister pseudo-random number generator (MT19937-64).

go get github.com/seehuhn/mt19937
INSTALL
IMPORT
SIG · SEEHUHN-MT19937
S
seehuhn-mt19937
utilitygov1.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

mt19937
github.com/seehuhn/mt19937

Create a new Mersenne Twister PRNG and generate a random uint64.

package main import ( "fmt" "math/rand" "github.com/seehuhn/mt19937" ) func main() { rng := rand.New(mt19937.New()) fmt.Println(rng.Uint64()) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.0.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
seehuhn-mt19937 — go get seehuhn-mt19937 · libregistry