// Random: a simple linear random generator using the veclib dranv // // produces one or a set of equally distributed random numbers // between 0 and 1 // problem: the veclib dranv etc. expose the seed! Class Random hides it. #ifndef _random_h_ #include "Matrix.h" #include "Vector.h" class Random { private: long long seed; double* randomArray(int n); // creates array with random entries public: Random(); Random(long long seed); void setSeed(long long s); double next(); Vector &randomVector(int n); // creates vector with random entries Matrix &randomMatrix(int m, int n); // creates matrix with random entries }; #define _random_h_ #endif