There is no way it's possible to have sure certainty when it comes to gambling except it's a different event that you have an inside information that will give you such confidence but however if it's just the regular casino type of thing we know then it's very much impossible.
Additionally, it's still gambling as long as there is a chance of your certainty to flop, but if there is no chance of getting it wrong then it not gambling.