paysages3d/src/system/RandomGenerator.h

26 lines
353 B
C++

#ifndef RANDOMGENERATOR_H
#define RANDOMGENERATOR_H
#include "system_global.h"
#include <cstdlib>
namespace paysages {
namespace system {
class SYSTEMSHARED_EXPORT RandomGenerator
{
public:
RandomGenerator();
static inline double random()
{
return ((double)rand()) / (double)RAND_MAX;
}
};
}
}
#endif // RANDOMGENERATOR_H