https://github.com/baileywickham/mersenne-twister
Go translation of the CPython Mersenne Twister implimentation
https://github.com/baileywickham/mersenne-twister
golang mersenne-twister
Last synced: 5 months ago
JSON representation
Go translation of the CPython Mersenne Twister implimentation
- Host: GitHub
- URL: https://github.com/baileywickham/mersenne-twister
- Owner: baileywickham
- Created: 2020-09-14T19:59:58.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-10-02T23:43:12.000Z (over 5 years ago)
- Last Synced: 2023-03-09T03:25:52.656Z (over 3 years ago)
- Topics: golang, mersenne-twister
- Language: Go
- Homepage:
- Size: 1.27 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Mersenne Twister
This is a port of the python random library implimentation of the Mersenne Twister to golang. It is commented based on the origonal paper.
The Mersenne Twister is a method for generating pseudo random data based on an inital seed. The inital seed is usually generated from a physical source such as the temp of the CPU. This seed can be then used to generate more data.
## Links
[Original paper](http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/ARTICLES/mt.pdf)
[Python Source Code](https://github.com/python/cpython/blob/master/Modules/_randommodule.c#L75)