Yes and no. The problem you are thinking is when you pin the output from rand() to a range that is less than RAND_MAX (i.e. there are fewer possible outputs than inputs).
In your case, you (usually) change this: you take a fairly small number of bits created by a random number generator and distribute them among what will usually be a large number of bits in your double mantissa. This means that there are usually several bit patterns in double (and therefore specific double values) that can never happen. For most people, this is not a problem.
As for "normal", it is always possible that you have a 64-bit random number generator, where the double usually has a 53-bit mantissa. In this case, you may have the same problem as when compressing the range with integers.
source share