Choose random position for min conflicts and change definition of random row