Re: random real number between 0 (inclusive) and 1 (inclusive)
- From: Leonard Milcin <leonard@xxxxxxxxxxxxxxxx>
- Date: Tue, 06 Nov 2007 17:06:08 +0100
(-Peter-) wrote:
Hi..
I've been searching at the Internet, and in this newsgroup about this
issue, but have not been able to find what I'm searching...
What I need is to generate a lot of random real numbers between 0 and
1, both inclusive (normally it's possible to generate the number
between 0(inclusive) and 1 (exclusive!!!) )
Can anyone tell me how this is done?
/Peter
Are you really sure about the requirements? If we forget limitations of
computational technology the chance to get 1 is infinitesimal. As such
for any practical purposes you should be able to exclude 1 and be
perfectly happy with results.
Even if we take into account the fact that you don't get fine grained
results the chance to get 1 is still very close to 0 for any practical
purposes.
Best Regards,
Leonard Milcin
--
It is wrong always, everywhere, and for anyone, to believe anything
upon insufficient evidence.
-- William Kingdon Clifford
.
- References:
- random real number between 0 (inclusive) and 1 (inclusive)
- From: (-Peter-)
- random real number between 0 (inclusive) and 1 (inclusive)
- Prev by Date: Re: Ahhh.. URL wants to get encoded. Does Java wanna?
- Next by Date: Re: Ahhh.. URL wants to get encoded. Does Java wanna?
- Previous by thread: Re: random real number between 0 (inclusive) and 1 (inclusive)
- Next by thread: Java Basics
- Index(es):
Relevant Pages
|