In the c++11, we now have <random> to produce random number.
About uniform distributions, we have following
uniform_int_distribution-produces integer values evenly distributed across a range uniform_real_distribution-produces real values evenly distributed across a range
The first produces random integer values i, uniformly distributed on the closed interval [a, b], but the second, ie real one, produces random floating-point values i, uniformly distributed on the interval [a, b)
Question: why int and real distribution have different range, ie for one
b] is inclusive but for another
b) is exclusive?
If it is related with the algorithms behind, I would like to know what are they and where are the differences. Or preferences about it.