created randomly generate groups