title: To generate array of random numbers in a given range in "C"
body: <p>i want to generate an array of random numbers for example if the range is [0,10] then the desired output to be 
  2 3 5 6 4 7 8 9 0 1  ( non repeatitive )</p>
  
  <p>the problem i am facing with rand() function is sometimes i get some repeated nos , i was discrete values in that range , and different order everytime i invoke. </p>
  
  <p>Ps: I did go through some of the threads 
  <a href="https://stackoverflow.com/questions/3680637/how-to-generate-a-random-double-in-a-given-range">Generate a random double in a range</a>
  <a href="https://stackoverflow.com/questions/288739/generate-random-numbers-uniformly-over-entire-range">Generate random numbers uniformly over an entire range</a>
  in here and couldnt fine one similar mine, there is a subtle difference. expecially the latter one is pretty close  </p>