Chapter 6 Objects and Classes. Using the RandomGenerator Class Before you start to write classes of your own, it helps to look more closely at how to.