I voted to close when it came up in the queue (which means somebody else put it there). Your question was off-topic for the reasons given. There was nothing 'random' about it. While it may seem like a whimsical process, closure is a serious matter and requires an impressive reputation hurdle in order to participate.
The queue also 'injects' questions where it knows the answer. This is done to make sure the reviewers are paying attention. If you fail the test several times, something bad happens (I don't know exactly what happens but it's said to be bad if you give the wrong answer to a test question). So reviewers are paying attention.
The question you give for comparative purposes was also off-topic, but it had upvotes and an upvoted answer before it could be closed by the reviewers. Your question had down votes and this also made it amenable to closure. I didn't down vote it but considered the existing down votes to be indicative of community sentiment.
You still need to hear from 4 more reviewers though.