

In theory, if you are following a company’s public financials very closely and keeping track of things, not all of the stock market is completely unpredictable.
Some companies do certain things on predictable cadences. Every year at WWDC, apple announces a new iphone, and every year the stock price goes up a bit as a result. You’re not going to triple your money in a week, but if you can get 5% in a week, you’re already doing as good as most banks offer for a whole year.
Knowing too much information is illegal. That’s “insider trading”, at which point it is completely not gambling because you already know if the stock is going to go up or down, and that’s just cheating.
It’s far more complicated than I have made it sound. it’s not just “once every year apple go up”. You’d need to be following as much public information about a company as possible, and be keeping track of trends. Keeping track of those things is a full time job. Especially since you need to keep track of many companies. And then that will still often only get you a slight edge.