**6.8 Generating a number of passenger origin-destination pairs from the CDF**

In this sub-section, five examples on the random sampling of passenger origindestination pairs.

This is carried out by generating a random number uniformly distributed between 0 and 1. In the examples shown below, they are shown with 3 decimal places for simplicity. In each case, the number is to find the first number in the CDF that is larger than the random number generated. Once this is found, the row of the element represents the origin floor of the passenger origin-destination pair, and the column index represents the destination floor.

*Five examples:*

