divide patients in random groups