add the pseudocode for the reservation random generator