7.15. Case Study: Random Number Generation
We now take a brief and hopefully entertaining diversion into a popular programming application—simulation and game playing. In this and the next section, we develop a game-playing program with multiple methods. The program employs many of the control statements presented thus far in the book and introduces several new concepts.
There is something in the air of a gambling casino that invigorates people—from the high rollers at the plush mahogany-and-felt craps tables to the quarter poppers at the one-armed bandits. It is the element of chance, the possibility that luck will convert a pocketful of money into a mountain of wealth. Unfortunately, that rarely happens because the odds, of course, favor the ...
Get Visual Basic 2005 for Programmers: Deitel Developer Series, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.