//nx: array of cut sites; select random