The Randomizer

Like Russian Roulette, except somewhat less dangerous.

Similar projects worth following
Click the link below to be taken to a random project.

How it works: IO links have a project name in the URL, but it also works if you remove everything except the ID number.

So, a Perl script using WWW::Mechanize first visits the Projects page "sorted by date" and identifies the highest ID in use. Then, it repeatedly chooses a random number and tries a GET to see if that page exists. If no 404 is returned, it gives the URL back.

A simple PHP wrapper calls the Perl script and returns the URL in a Location: header.

Enjoy this project?



Amar wrote 10/30/2017 at 17:30 point

Would hackaday's API for GET /projects be easier for this?

  Are you sure? yes | no

davedarko wrote 10/30/2017 at 11:12 point just shared that on twitter, but the link seems to be frozen? do nothing?

  Are you sure? yes | no

Stephen wrote 08/21/2016 at 07:34 point

Wheel go round and round long time. No work ever. Sorry I've been talking to Ebay sellers too much today. B-)

  Are you sure? yes | no

RoGeorge wrote 08/19/2016 at 23:20 point

I like this randomizer very much. Do you think it would be good to filter out not only the missing projects, but the projects without a picture too?

  Are you sure? yes | no

Arya wrote 08/09/2016 at 19:27 point

Seems down to me now

  Are you sure? yes | no

davedarko wrote 08/01/2016 at 09:36 point

Non existing / deleted projects throw a 404, right? Nice. I had a javascript randomizer on the hackaday logo once, but this is way better.

I got here from:

  Are you sure? yes | no

Greg Kennedy wrote 08/01/2016 at 16:09 point

Yes - each potential is checked for HTTP header errors before returning to the client.  Source is available!  Check the left sidebar (links section).

One interesting thing about this is that apparently the same IDs are used for Project and Hackerspaces.  So, sometimes you get passed to a random hackerspace, and sometimes a random project.

  Are you sure? yes | no

PointyOintment wrote 08/02/2016 at 05:08 point

Lists (and I think other content types) as well. First thing it gave me was

  Are you sure? yes | no

Similar Projects

Does this project spark your interest?

Become a member to follow this project and never miss any updates