PROBABILITY DISTRIBUTION OF INHERENT STATES IN MODELS OF GRANULAR MEDIA AND GLASSES