added method to make random groups
added method to make random groups