Randomizing people into groups


I have a list of names of people enrolled in my class. Is there an easy way to place them into randomized groups of 5? Ideally, I could do this to have gender-balanced groups. Any suggestions would be welcome.


You could write a simple program using the Airtable API to perform this functionality.