I'm not sure you can do that in one equation question but using JavaScript, you could load three sub-questions of a multiple-short-text question with 3 random numbers out of 5.
Set up your survey to use JavaScript
and add the following script to the source of a multiple-short-text question (I think the comments explain what's happening):
Code:
<script type="text/javascript" charset="utf-8">
$(document).ready(function(){
// Identify this question
var thisQuestion = $('#question{QID}');
// Hide this question (un-comment below)
//thisQuestion.hide();
var numbers = [1,2,3,4,5];
// A function to shuffle elements or contents of arrays
(function($){
$.fn.shuffle = function() {
return this.each(function(){
var items = $(this).children();
return (items.length)
? $(this).html($.shuffle(items))
: this;
});
}
$.shuffle = function(arr) {
for(
var j, x, i = arr.length; i;
j = parseInt(Math.random() * i),
x = arr[--i], arr[i] = arr[j], arr[j] = x
);
return arr;
}
})(jQuery);
// Shuffle the array
numbers = $.shuffle(numbers);
//Load the first three array values and fire Expression Manager
$('input.text', thisQuestion).each(function(i) {
$(this).val(numbers[i]);
checkconditions(this.value, this.name, this.type);
});
});
</script>
Sample question attached: