Summary

Explained the concept of an animation loop:

Introduced you to the pseudo-random number generator function named rand.

Showed you how to use rand to:

Showed you how to seed the random number generator with the current time.

Seeding with the time:

Showed you how to cause a ball to move at a constant speed in one of four directions in a box.

Showed you how: