If you buy MSFT specifically you'll get regular, fairly predictable dividend payments and not just an unknown amount of money in the future.

MSFT goes up a tiny fraction when you buy. That means MSFT employees with stock grants get a tiny "raise" courtesy of you and with no cost to the company. Microsoft can also use their more expensive stock to make acquisitions. So you are contributing to the company's productive use in at least 2 ways if you buy its stock.

Buying MSFT doesn't meet the criteria to be called gambling, for me.