Price variations in a stock market with many agents