Gambling implies a truly random outcome which is why Poker is a game of skill as is arguably horse racing :-)
If you can identify an temporary overhang on a particular share you can make money as the discount narrows as I have done with Witan I also made a lot on Electra private equity as it was targeted by an activist investor and they realised some of their PE investments
If I buy APPL today at X, I hope in 3 days it will be Y so I can sell. That's a gamble.
You can use all forms of analysis and assessment to give you more confidence in the gamble, but it's absolutely a gamble.