title: How do I go to a random website? - python
body: <p>How to generate a random yet valid website link, regardless of languages. Actually, the more diverse the language of the website it generates, the better it is.</p>
  
  <p>I've been doing it by using other people's script on their webpage, <strong>how can i not rely on these random site forwarding script and make my own?</strong>. I've been doing it as such:</p>
  
  <pre><code>import webbrowser
  from random import choice
  random_page_generator = ['http://www.randomwebsite.com/cgi-bin/random.pl',
                           'http://www.uroulette.com/visit']
  webbrowser.open(choice(random_page_generator), new=2)
  </code></pre>