We introduce a spin-1 version of the random energy model with a crystal field. The crystal field controls the density of 0 spins in the system. We solve the model in the microcanonincal ensemble. The model has a spin-glass transition at a finite temperature fo... ...