Stochastic numerical treatment for solving Troesch’s problem