I know how to create html code with a button that takes you to a specified url but I want th url to be random each time
How random do you want it to be? Each character random or a specific part of the URL to be random characters?
Is the possibility of getting an invalid return acceptable?
Otherwise, I would suspect that you have to create a list of valid URLs and then randomly choose one of them.
Since raw HTML doesn't have a good way of reading from a database, your best bet would be to put the values in XML format and access them via Javascript.
Take a look here: http://think2loud.com/224-reading-xml-with-jquery/
They have an example of using jQuery to read from an XML file. You would need to write the randomization on your own.
