No, they're on topic, as long as you specify that it is a monte-carlo algorithm and by which probability it's producing the correct result.
Why? Because the code isn't broken; it's doing exactly as stated.
Asking us to fix a monte-carlo algorithm to be perfect is off-topic however.