They say that luck is a factor of what we are doing, so if we are to analyse a thing, let say a gambling game, we might actually increase our luck percentage. Gambling has odds or numbers, just like what we had in Mathematics, so learning how to read the odds and doing some calculations can as well increase our chances of winning or reduce our chances of losing.
Luck outside might only differ a little from luck in gambling because you said we may not expect it as we can be doing random things but when we are gambling, it is intentional and like we said earlier, we can also do an analysis if we are that desperate of earning a profit.
While luck is considered to be unpredictable, some argue that it can be analyzed and influenced to a certain extent. By understanding the odds and probabilities associated with different gambling games, gamblers can make more informed decisions that may increase their chances of winning. For instance, in games like poker or blackjack, a gambler can adopt a mathematical strategies to improve their odds of winning. When though this do not guarantee steady win, you might be sure to make a little profit.
By calculating probabilities, and expected values, and understanding statistical concepts, a gambler can gain insights into the underlying mechanism of games. This knowledge can help players make strategic decisions that may tilt the odds in their favour. I have seen people who make predictions on pool games making calculations to know the match that is likely to end in a draw. Sometimes, the calculation works in their favour and other times it doesn't too and that is why I will always conclude that gambling is a game of luck regardless of what anyone says.