Fixed generation algorithm