Pairing properties from random distributions of single-particle energy levels