The easiest way is often to read the documentation. Random.nextDouble() returns a value between 0 and 1. Or did you mean something else?
If you just had a "black box" random number function, there'd be no way of getting a definitive answer. All you could do is call it lots of times and get an indication of what the distribution might be.