Last active
December 24, 2015 11:09
-
-
Save samtalks/6788983 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def create_groups(source, students, groups) | |
arr, src = [], source.shuffle | |
(students*groups/41+1).times {arr += src} | |
arr.slice!(((students*groups)-arr.size)..-1) | |
arr.each_slice(students).to_a | |
end | |
def get_students | |
[ | |
"Alex Chiu", | |
"Amanda Himmelstoss", | |
"Anders Ramsay", | |
"Bana Malik", | |
"Brendan Manley", | |
"Charlotte Chang", | |
"Christopher Lee", | |
"Daniel Chang", | |
"David Bella", | |
"Edina Vath", | |
"Emily Xie", | |
"Greg Eng", | |
"Ian Miller", | |
"Iris Lee", | |
"Ivan Brennan", | |
"James Tong", | |
"Jeanne Roniger", | |
"Joe O'Conor", | |
"John Richardson", | |
"Joshua Scaglione", | |
"Kyle Shike", | |
"Logan Hasson", | |
"Manuel Neuhauser", | |
"Margaret Lee", | |
"Matt Campbell", | |
"Michael Polycarpou", | |
"Mike Spangler", | |
"Raymond Gan", | |
"Rosanne Hoyem", | |
"Sam Yang", | |
"Samuel Owens", | |
"Saron Yitbarek", | |
"Scott Luptowski", | |
"Vivian Zhang", | |
"Sonja Hall", | |
"Stephanie Oh", | |
"Theo Vora", | |
"Thomas Surgent", | |
"Tiffany Peon", | |
"Trevor McKendrick", | |
"Vinney Cavallo" | |
] | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment