Original Post
I was under the impression I wouldn't have to seed my generator in the following code but all of the random numbers generated are the same. What's wrong?
namespace Engine {namespace Math {static boost::mt19937 randomGenerator;static inline float randomFloat(float min, float max) { boost::uniform_real<float> distribution(min, max); boost::variate_generator<boost::mt19937, boost::uniform_real<float>> random(randomGenerator, distribution); return random();}} //namespace Math} //namespace Engine
