Stationary probability distribution in granular media