Formation of electron-hole pairs in a one-dimensional random environment