Let's take a look at the effects, to see whether this is what we really want. So, crank it up in your browser. A new Random class makes an object, the Next function gets a number, and that's how you can initialize x and y coordinates at each .
Alright, hit the Make and Show Points buttons, and there's an obvious problem, as shown in the following screenshot:
Figure 6.19.6: The results of running the program as currently written are not very random