Bear Bibeault wrote:There are an infinite amount of numbers there.
Well, that is not true if we talk about
Java and
double type. I just wanted to clarify this.
You might want to convert a number in range 0.0-1.0 to an integer but you may also get this integer directly by using
java.util.Random class and its
nextInt(int n) method.