In this chapter, we first cover how to generate random numbers. Then, flipping a coin, rolling a pair of dice, random walking, and traffic flow topics are covered. In each section, I provide illustrations of the relevant programming ideas and explain them when necessary.
Random Number Generation
Random Generating Functions
Creates uniformly distributed pseudorandom ...