Khamsin could have meant the question either way, so we can't be sure which interpretation is "misreading it". The way he phrased it, the
return value++;
answer is a valid counterexample, because he didn't specify the meaning of "run", so it's perfectly valid to read it as "a function that will return a different value on each execution".
Now, the far more significant question (and the one that would have to do with true randomness as opposed to pseudorandomness) would be "can a program return a value that is not deterministically generated from its inputs, if its inputs includes the hardware on which it is executed, the exact time of its initiation, and the number of cycles it takes between execution and return." As far as I know, the answer to that is no, but as I said earlier, a system with hardware based on quantum mechanics would be intrinsically nondeterministic, and therefore would need no "external" inputs to generate nondeterminism as current technology would.
XI Wiki


