In comp.lang.javascript message <48be132f$0$23607$f4da826c@news.24online
..fi>, Wed, 3 Sep 2008 07:31:39, optimistx <optimistxPoista@poistahotmail
..composted:
Quote:
>FAQ server wrote:
>
>Excuse me, Mr/Mrs FAQ server, is that really correct? When
>I try e.g. x = 1.5, do I really get evenly distributed results?
>
>Errare humanum est. I hope I made an error: then I learned
>something.
ISTR that a previous FAQ maintainer was told that the argument of Random
was intended to be integer, but did not act on that (ICBW).
He also wanted to put a lower limit of 2 on x !
"therefore" should be replaced by "therefore, with positive integer x,".
However, one can use the function with other arguments, if you find it
useful.
The Microsoft and Sun references do not explicitly say that the number
is evenly distributed (I believe its evenness in imperfect in IE).
--
(c) John Stockton, nr London, UK. ?@merlyn.demon.co.uk Turnpike v6.05 MIME.
Web <URL:http://www.merlyn.demon.co.uk/- FAQish topics, acronyms, & links.
Proper <= 4-line sig. separator as above, a line exactly "-- " (SonOfRFC1036)
Do not Mail News to me. Before a reply, quote with ">" or "" (SonOfRFC1036)