title: write a c function that generates one random number, or a pair of random numbers, or a triplet of random numbers given the particular ranges
body: <p>i have to generate random numbers for 3 different cases.
  i. 1 dice
  ii. a pair of dice
  iii. 3 dices
  my questions:
  1. please suggest me sm good logic to generate random numbers for all the 3 cases.
  2. does the logic change when i consider the cses of 2 dices, rather than 1?
  3.how much of an effect does the range in which we have to genrate a random number affect the logic of the random function?</p>