Generates random sandwich configurations.