In article <[EMAIL PROTECTED]>,
Shareef Siddeek <[EMAIL PROTECTED]> wrote:
>Hi Glen,
>Thank you for your advice. In fact I new that I should use the uniform
>distribution to select the random value. But for some reason or other, my
>brain did not figure out on that day that whether I should use a discrete or a
>continuous random number function to select the integer values. It looks like
>I could use either one. Cheers. Siddeek

All "continuous" random number generators are really discrete.

If you have a generator for which the independence of the 
individual bits can be trusted, there is a most efficient
(in terms of bit usage) manner to generate a discrete 
random variable, and for integer random variables it can
be programmed easily.  It will probably run slower on just 
about any computer.
-- 
This address is for information only.  I do not claim that these views
are those of the Statistics Department or of Purdue University.
Herman Rubin, Deptartment of Statistics, Purdue University
[EMAIL PROTECTED]         Phone: (765)494-6054   FAX: (765)494-0558
.
.
=================================================================
Instructions for joining and leaving this list, remarks about the
problem of INAPPROPRIATE MESSAGES, and archives are available at:
.                  http://jse.stat.ncsu.edu/                    .
=================================================================

Reply via email to