title: Saving the output of the output of a random array?
body: <p>So this function works fine, however everytime i refresh the page the WINNER (person1 to 4) changes, i want to save the output and have it FIXED so that it wont change everytime i refresh..
  Basicly: There is a timer on my website and when it hits 0 , it should automaticly pick someone from the list as the winner... but the winner should appear on the website for everyone and stay there</p>
  
  <pre><code>function randomNavn(){
      document.getElementById("utskrift").innerHTML = "";
      for (i = 0; i &lt; 1; i++){
          randName.push(nname.splice(Math.floor(Math.random() * nname.length), 1));
      }
      document.getElementById("utskrift").innerHTML = randName.join(", ");
  
  
  }
  var nname = ["Person1", "Person2", "Person3", "Person4"],
   randName = [];
  </code></pre>