I think generally, it's easy to simulate it as well.
The core of my idea is a binary-random-sampler, which generates a binary result.
-
If the result is True, it will return a sentence - "Please refer to CSAPP".
-
If the result if False, it will return a link to stackoverflow.