taking two different random indices from a region