The terminology of the word generate can be confusing. It gives the impression that each time you click that (generate) button, it will show a new code because of the term generate. Even though the codes remain the same. Thank you for considering changing the language of this feature.
Also, please consider putting the "Generate Join Code" option under sharing options, instead of / in addition to students. Thank you!