Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pdebuyl/random_module
A modular and version controlled implementation of the Mersenne Twister
https://github.com/pdebuyl/random_module
fortran mersenne-twister random-number-generators threefry
Last synced: 28 days ago
JSON representation
A modular and version controlled implementation of the Mersenne Twister
- Host: GitHub
- URL: https://github.com/pdebuyl/random_module
- Owner: pdebuyl
- Created: 2015-08-12T08:58:25.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2018-06-05T08:40:57.000Z (over 6 years ago)
- Last Synced: 2024-01-29T08:47:27.951Z (9 months ago)
- Topics: fortran, mersenne-twister, random-number-generators, threefry
- Language: C
- Size: 33.2 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Random module
## What is this about?
This repository aims at providing a modular and version controlled implementation of several
pseudo random number generation (PRNG) algorithms. All implementations are done in C, for
convenience with respect to integer arithmetics, and made available to Fortran via the
`iso_c_binding` feature.The first algorithm that was implemented in this repository is the Mersenne Twister. Now,
the [threefry](http://www.deshawresearch.com/resources_random123.html) PRNG is also
available.The original code `mt19937ar` from Matsumoto and Nishimura, downloaded from
http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/emt.html, is used as a starting point and
separated into a header and a library file. The state is stored as a struct to remove global
variables.## Licensing
The license for the original code of `mt19937ar` is the 3-clause BSD license:
Copyright (C) 1997 - 2002, Makoto Matsumoto and Takuji Nishimura
Other files and developments are under the 3-clause BSD license, Pierre de Buyl 2015-2016