Answer 1) A random number generator is used to select an integer from 1 to 50. Since random number generator generates any number randomly, all the numbers from 1 to 50 get equal chance to occur. Thus if X denote the random number selected by using the random number generator, then, P(X=k) =1/50, k=1, 2,…,50,i.e., X follows a discrete uniform

If you need bullet-proof random-number generation, use the Boost stuff, or C++11. For beginners, this is sufficient. Absolutely a better solution is to use Boost random number generator it was written by people who actually understand the problems associated with random numbers.

A random number generator is a system used to generate a set of numbers that cannot be reasonably predicted better than by random chance. You can use this tool to draw winning numbers for your raffle.

The Random Number Generator produces a Random Number Table consisting of 10 entries, where each entry is the number 1 or 2. The researchers assign the treatment indicated by the first entry to volunteer number 1, the treatment indicated by the second entry to volunteer number 2, and so on.