Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

How to put a random number in the URL bar?

I'm bored, and surfing through an image posting site, and to make it interesting I want to do it completely at random. The site doesn't have a 'random post' button, but the format of each url link is '..../view/XXXX' where the x's are the post number. I've tried using a random number generator, then copying and pasting the number into the url, but it's too slow. Is there a way for me to input a random number (with a floor and a cap) directly into the url? I mean can I write something like '..../view/randInt()' ?

If not, is there a way I could write a program to do this for me? I know some basic java, if that could help me, but I'm open to learning new languages, I'm just not sure how I can get a program to edit a text bar in a separate program, namely a web browser. Thanks in advance

2 Answers

Relevance
  • 9 years ago
    Favorite Answer

    You could write an HTML program to randomize the url as a string on click of a button. Its fairly simple IF you know how to incorporate HTML and JS together.

    Source(s): Web Developer/Designer
  • 9 years ago

    You can do this easily with Javascript.

    If I had the full form of the URL, I could write a bookmarklet or web page to do it automatically.

Still have questions? Get your answers by asking now.