/* * Random.h * * Created on: Dec 31, 2010 * Author: cpresser */ #ifndef RANDOM_H_ #define RANDOM_H_ class Random { public: Random(); Random(unsigned int seed); ~Random(); //returns the default MAX value (RAND_MAX) int maxInt(); //pseudorandom number between 0 the default MAX) int nextInt(); //pseudorandom number between 0 and max-1 int nextInt(int max); //pseudorandom number between min and max-1 int nextInt(int min, int max); //pseudorandom number between 0.0 (inclusive) and 1.0 (exclusive) float nextFloat(); //pseudorandom number between 0.0 (inclusive) and 1.0 (exclusive) double nextDouble(); }; #endif /* RANDOM_H_ */