If you saw only this problem, and the probability of losing 50%, then it turns out that every fourth attempt made by such an algorithm will bring huge profits.
I recently started participating in the ICO, so I do not have such a great experience. I'm sure in the future I will change my mind.