Sometimes a programmer needs the programSequences of instructions for a computer. to generate a number or letter within a specific range. This requires the program to create a random number. Programming games that involve chance, such as dice, require random numbers as do many types of program that need to be unpredictable.
Random numbers are not just used for rolling dice and games of chance. When sending dataUnits of information. In computing there can be different data types, including integers, characters and Boolean. Data is often acted on by instructions. across a networkA group of interconnected computers/devices., a wireless routerA device for connecting computers and other network capable devices together to form a network. waits for a random amount of time before transmitting the data to avoid collisions. Random numbers are often used to generate secure passwords that are difficult to crack.