User Tools

Site Tools


Trains Board Game Randomizer


For anyone who knows me, they know I'm a bit of a tabletop gaming nerd. I've played a lot of Dominion, but I recently picked up the Trains board game. I've used randomizers for Dominion for a long time (dealing with the randomizer cards kind of sucks), but I couldn't track down a randomizer for Trains. Since there was a lack of randomizer, I decided to hack one out really quick one day.


The randomizer is pretty simple and is laid out to be used from a mobile device. Again, this is pretty hacky. If you want to use it, just go to It's a super-simple page that just has a bit of javascript to hit a CGI script that generates some JSON.


If anyone is interested in using just the “API”, feel free to do so. It is just a cgi page that takes some options and returns some JSON. The base “API” CGI lives at Here are the different query string options:

Key Values Description
shreq 1 If this is set, the standard required cards will also be returned
pp 1 This is mainly used for testing/debugging. It will “pretty print” out your results

As you can see, this is pretty simple. If you want to generate a JSON response with all options set, just do

Source Code

If anyone is actually interested in getting the source for this, let me know. It's not very good (one more time, totally hacked this out one afternoon), but just send me an email and I could add it to github or something. Otherwise, use the site/API as you desire.

misc/trains_random.txt · Last modified: 2013/10/12 19:03 by jay