Number Guessing Game task validation issue

So I did what you suggested (and it did work, thanks a lot !) but I had to run the validation script several times to pass all the tests because everytime one or two of the tasks failed randomly. I’ve seen this issue in other topics on this forum :

Thanks again for your help !