Adding random generator code to listOfAllExperiments function