Randomizer implemented using a binary tree. Sorry, it's the smartest thing I could come up with.