+ 1
Random nos are useful when you don't want to decide what number the program is going to use .For eg for creating a Head or Tails program ,you want the program to generate head or tails randomly . Here you generate a random number ,and check if that's odd then print Tails ,if its even then print Head . Like this there are many ways one can make use of random number generation



