title: Generate random number within range without repeating numbers in javascript
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/2380019/generate-8-unique-random-numbers-between-1-and-100">Generate 8 unique random numbers between 1 and 100</a><br>
    <a href="https://stackoverflow.com/questions/11808804/generate-unique-number-within-range-0-x-keeping-a-history-to-prevent-duplic">Generate unique number within range (0 - X), keeping a history to prevent duplicates</a>  </p>
  </blockquote>
  
  
  
  <p>I need loop that will run 80 times and generate random number between 0-79 but it will not repeat number that has been generated already.<br>
  How can I do that?</p>