Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

mdp_prng.h File Reference

Go to the source code of this file.


mdp_prng mdp_random
 Marsaglia's random number generator (same as UKQCD).

Detailed Description

Massimo Di Pierro <>
Class mdp_prng (the random number generator of MDP)

This file is copyrighted by MetaCryption LLC Read attached license in file mdp_license.pdf This file cannot be distributed without file mdp_license.pdf

Variable Documentation

class mdp_prng mdp_random

Marsaglia's random number generator (same as UKQCD).

You should not instantiate this class because:

  • there is a global object mdp_random
  • each field "lattice" has a parallel generator "lattice.random(x)" Example:
           // print a uniform number in (0,1)
           cout << mdp_random.plain() << endl;
           // print a gaussian number
           cout << mdp_random.gaussian() << endl;
           // print a random SU(10) matrix
           cout << mdp_random.SU(10) << endl;

Generated on Sun Feb 27 15:12:23 2005 by  doxygen 1.4.1