This function will generate a unique 4 digit code for a students. It will only re-use codes from students that are already out of the school for two years. The codes are generated in random order.
To generate click on the code column button in the student tab.
If you want to generate for all students in this period that dont have a code yet; go to the administraion screen, period tab, and click on the button generate student code by the period.