The generation of random numbers has many uses (mostly in statistics, for random sampling, and simulation). Before modern computing, researchers requiring random numbers would either generate them through various means (dice, cards, roulette wheels, etc.) or use existing random number tables.
Yawning, swallowing or chewing helps open the small canal (Eustachian tube) which connects your middle ear in the inner side of the ear drum, and equalizes the pressure with the outer side and causes the sensation of ears popping when swallowing.
Ear popping is caused by the  Eustachian tube, which normally equalizes pressure between the inner ear and the throat. When the Eustachian tube is dysfunctional due to a cold, allergies or change in altitude such as during a plane ride, the ear can pop as pressure is released and air is forced out.