Table Of Contents

Previous topic

quaternions (Quaternions.f90)

Next topic

Version history

This Page

mt95 (Mersenne.f90)

The module mt95 contains a random number generator. Currently ‘Mersenne twister’ is used, but it could in principle be replaced with any generator. This is an external module not written as part of the Pysic project.

The generator is initialized with the routine genrand_init() and random real numbers in [0,1] and [0,1) are extracted with genrand_real1() and genrand_real2(), respectively.

Routines of the mt95 module

genrand_init(seed)
genrand_real1(random)
genrand_real2(random)