/* randomDistributions.cpp Using a Random class (see random.h), prints the results of popular random number generators. See also randomDistributions.cxx, which is the ROOT version of this code, to look the graphical form of the distributions. Aug 2008 */ #include <iostream> #include <cmath> #include <cstdlib> #include <ctime> #include "random.h" using namespace std; int main(){ Random r; for(int i=0; i<10; i++) cout << r.Flat() << " " << r.Gauss() << " " << r.Exponential(10.0) << " " << r.BreitWigner() << " " << r.Integer(1,6) << endl; return 0; } // main