Java Reference
In-Depth Information
Figure 11.1. Quiz with random questions
The random() function has allowed us to provide options from which to choose, making
the game much easier to play by not requiring any typing. It also means that each game
produces questions in a different order (although it's a limited range, given that we only
have three questions!)
Search WWH ::




Custom Search