Create random.js for gh-pages

Create random.js to work with the index.html for gh-pages.