× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



I agree with the lack of clarity in the manual. A[n electronic] Reader Comment card would seem appropriate.

A test over a sufficiently large sample size, probability suggests, would show that the result of RAND() is _inclusive_ both zero and one.

with sample (rnum, ranv) as
(select 0, rand() from qsys2.qsqptabl
union all select rnum+1, rand() from sample
where rnum<100000
) select * from sample where ranv in (0, 1)
....+....1....+....2....+....3....+....4
RNUM RANV
4,578 0.0000000000000000E+000
17,585 0.0000000000000000E+000
33,670 1.0000000000000000E+000
44,896 1.0000000000000000E+000
63,019 1.0000000000000000E+000
78,113 0.0000000000000000E+000
79,972 1.0000000000000000E+000
97,211 1.0000000000000000E+000
******** End of data ********

Regards, Chuck

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.