[c++] Generate random numbers uniformly over an entire range