D-mo

Results 184 comments of D-mo

> I think making it explicit would be less error prone specially for people less experienced in c/c++ like me. @AkramIzz this is not C/C++ specific. Almost all typed languages...

@hollasch IMHO there is no need to sweat over it...

@hollasch it would possibly help if you switched `RAND_MAX` and `1.0` around: ```c++ inline double random_double() { // Returns a random real in [0,1). return std::rand() / (1.0 + RAND_MAX);...

> Won't help much, I'll probably stop reading before the `+ RAND_MAX` part :P True that... 😃 @hollasch may it's a good time to switch to something more modern, like:...