1float get_random()
2{
3 static std::default_random_engine e;
4 static std::uniform_real_distribution<> dis(0, 1); // rage 0 - 1
5 return dis(e);
6}
7
1float r3 = LO + static_cast <float> (rand()) /( static_cast <float> (RAND_MAX/(HI-LO)));
2