martingale simulation in go