Hi,
if you talk about the script I provided:
You see there is one line
for (var i = 1; i < 51; i++) {
This is to create an array with total numbers from 1 to 50. If you have less or more, adapt.
There is another line
anumbers = arr.slice(0,10).join(',');
Here you set the numbers of subquestions you want to show.
Then you get a string in the hidden question Q0 like #,10,49,23,1,32,...
Therefore you may comment "//" the line
$('#question{QID}').hide();
to make this question visible.
And in your question there is a subquestion relevance like strpos(Q0,",1,")>0
Meaning: If the string ",1," is in the calculated random string, the subquestion is displayed.
Read about "strpos" in the manual.