Unfortunately I have made a rule for myself that as the developer I can't give away answers, but I can assure you it's not bugged, and it's not random. There is consistent logic that is implied by the rules, though I can see how it could be hard to understand from a glance. Still I'm glad you enjoyed the game.