if there are high priority jobs x = number high priority tickets there are else x = number low priority tickets there are y = random number between 1 and x loop through processes if there are high priority jobs compute index of proc of high priority jobs else compute index proc of low priority jobs run process move process down one