Seeding the random number generator

Seeding the random number generator (see Figure 2) is very important.

If we didn't do that, we would get the same sequence of pseudo-random number every time we run the program.

Listing 2 calls the time function (to get the current time) and