A game will rarely stay interesting when it is completely predictable. To avoid predictability, developers use random values provided by the Random class.