It's not really random, the value of stock has more to do with popularity of stock than the data people like to analyze.
As long as people keep buying a stock, it's price will continue to go up. Same thing the other way.
Now also keep in mind I can sell stock and you buy it, and we can both make money as I bought my stock lower than you.