Yes, it is common knowledge that beginners only guess price movements without being based on analysis or knowledge. If so, then it is the same as gambling.
For investors and traders, the actually need to have both technical and fundamental analysis. If they only guess the price movement, there is a chance of an unsuccessful result. Sure, this tends to be like a gambling than the right way in trading/investing. Beginners need to learn first, they must know the basic knowledge of technical and fundamental analysis.
Some people still question whether trading is the same as gambling, one answer we can give is to give an example of how beginners trade. When they just guess, then it is no different from gambling, but if it is based on analysis and knowledge, then it is different from gambling.
Beginners sometimes assume it is the same. I think it is because they don't understand yet about trading. For the people who understand trading well, they must know it is totally different. It is because we determine the strategy, analysis, an many other things based on the knowledge. We can't only guess it, it is not a proper way to do.