Moodle provides a way to automatically create groups.
You have options to choose the following:
- Your naming convention
- Students per group, or per number of groups
- Random, or surname based
This video will show you how you how.
Another post will show you how you can use ‘Team Builder’ to create groups based on other variables you set.