Re: random real number between 0 (inclusive) and 1 (inclusive)



(-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
.



Relevant Pages

  • Re: OT one door closes, another opens
    ... There are a lot of idiots trying to kill the newsgroup. ... then the place stands a chance. ... No posts for a few days, ... He's rectangley. ...
    (alt.guitar.amps)
  • Re: Guaranteed Way To Win The Lottery
    ... combinations in a lottery. ... This newsgroup is currently ... you have a chance to win the lottery. ... guarantee a win. ...
    (rec.gambling.lottery)
  • Re: Guaranteed Way To Win The Lottery
    ... of the combinations in a lottery. ... can read the newsgroup FAQ to you), ... you have a chance to win the lottery. ... who claimed to have a way to guarantee a win. ...
    (rec.gambling.lottery)
  • Re: VB printing merge Word document automatically - working intermittently
    ... Well we would have to see the code to have any chance of helping you. ... Please reply to the newsgroup unless you wish to avail yourself of my ... Based on different scenarios in the application, ...
    (microsoft.public.word.vba.general)
  • Re: What will Pentax do next?
    ... the focus system and flash sync speed, and installing a grotty pentamirror just highlight their current obsession with cutting production costs. ... to concentrate solely on the low end market where they have at least some chance of some volume, however small that chance may be. ... They probably have the worst marketing department on the planet with the whole "Internet" thing ...
    (rec.photo.digital.slr-systems)