Skip to main content

How To Think Like a Computer Scientist C++ Edition The Pretext Interactive Version

Section 10.8 Statistics

The numbers generated by random are supposed to be distributed uniformly. That means that each value in the range should be equally likely. If we count the number of times each value appears, it should be roughly the same for all values, provided that we generate a large number of values.
In the next few sections, we will write programs that generate a sequence of random numbers and check whether this property holds true.

Checkpoint 10.8.1.

You have attempted 1 of 2 activities on this page.