One of the key requirements for posting here is
working code to the best of our knowledge
Where working means that the code compiles and returns correct results.
Where does that put Monte Carlo algorithms
whose output may be incorrect with a certain (typically small) probability.
Does that mean that they are by default off-topic? (Because they return the wrong result with a certain small probability.)
Is the definition of "working code" another one in this context and if so what should it be?
Update
Of course it is clear that we don't want to forbid Monte Carlo code from being reviewed. However, where is the line between off- and on-topic for Monte Carlo questions?
This is probably off-topic but why:
int add(int a, int b) { return rand(); }
And where do you draw the line?