/* 
   Random.h - Generates an integer random number between 1 and n.  This can/should
              be modified to use ran2 from Numerical Recipes.
*/

#ifndef RANDOM_H
#define RANDOM_H

#include <stdlib.h>
#include <time.h>


class Random  {
public:

    Random() { srand(static_cast<unsigned>(time(0))); }
    unsigned get_random(int n) const {return rand() %n; }
};

#endif