title: Random word on webpage every 1/10th of a second
body: <p>I'm developing a small web-based (javascript) 'application' for an art project. The thing is called 'Poetry Generator', and it's a script that generates random poems based on user input.</p>
  
  <p>The script has to display a random word to the user every 1/10th of a second. The wordlist used, counts 109.582 words.</p>
  
  <p>I've already tried different solutions:</p>
  
  <ol>
  <li>put all the words in a text file, and get a random line of the textfile -> too slow (and the user has to download a 3MB text-file before being able to use the application)</li>
  <li>put all the words in an array in the Javascript. -> javascript arrays apparently can't handle 109.585 items</li>
  <li>pull the words from a database using jQuery's Ajax function with a Javascript interval function -> this solution worked perfectly when testing on my localhost, but once uploaded to a real web-environment, this method proved to be too slow. (And I could imagine that my hosting provider wouldn't be so happy if I executed 10 query's to their server every second.)</li>
  </ol>
  
  <p>So.. Does anybody knows a different approach that I could use to show a random word on a webpage every 1/10th of a second? It doesn't necessarily has to use php or javascript, as long as it runs in a browses, I'm happy!</p>
  
  <p>Thanks in advance</p>
  
  <p>Teis</p>