Generate a number between 0(inclusive) to 1(inclusive)?
807598Jun 10 2006 — edited Jun 21 2006Hi all,
I have read the API doc and discovered that the nextDouble() method of the Random class generates a number between 0(inclusive) to 1(exclusive). But I want 1 to be inclusive, so may I ask how this can be done?
Thanks a lot.