Add this script to the question proper:
<script>
$(document).ready(function(){
$('#[% QuestionName() %]_r[% Q1 %]_c1').val(100);
$('#[% QuestionName() %]_r[% Q2 %]_c1').val(1);
})
</script>
"Q1" and "Q2" being the names of the first two questions, of course.
Then give it this custom JavaScript verification:
var rows = $('input[name="hid_row_list_[% QuestionName() %]"]').val().split(',');
var columns = $('input[name="hid_col_list_[% QuestionName() %]"]').val().split(',');
var responses = {};
rows.forEach(function(row){
columns.forEach(function(column){
var response = SSI_GetValue('[% QuestionName() %]_r' + row + '_c' + column);
if (responses[response]) {
strErrorMessage = 'Responses cannot be repeated.';
}
responses[response] = true;
});
});