What decides the opening price of a stock

How is the opening trading price for a stock determined each day?