Effective implementation of algorithms (Master Thesis)
Effective and error-free implementation of algorithms
src/utils/rand/rand.h
Go to the documentation of this file.
00001 #ifndef H_RAND
00002 #define H_RAND
00003 #include "utils/preconditions/preconditions.h"
00004 #include <stdint.h>
00005 
00006 class Rand
00007 {
00008  public:
00009    Rand(unsigned int seed);
00014   unsigned int rand();
00015   int rand(int min, int max);
00016   int exprand(unsigned int min, unsigned int max);
00017   double randdouble(double min, double max);
00018   double expranddouble(double min, double max);
00019  private:
00020   uint64_t my_seed;
00021 };
00022 
00023 //TODO(fix this)
00024 #include "rand.cpp"
00025 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines