How to randomly generate numbers in Java. Say we want to generate some real number in the range $[0, 1)$. How can we do this? Java provides us a convenient solution to this problem. In the library ...