Thank you! The debugging code shows that the random generator is correctly drawing the random generators
BUT now there are none of the pictures shown any more even though the html for them was right AND there are 12 random generators drawn now even though it should only be 8 --> i feel like the random generator for the bigger randomization (RG02) is somehow missing or wrongly incorporated.
This is my code at the moment:
question('RG02');
$pages = [
valueList('RG03', null, 'label'), // First pair
valueList('RG04', null, 'label'), // Second pair
valueList('RG05', null, 'label'), // Third pair
valueList('RG06', null, 'label'),
valueList('RG07', null, 'label'),
valueList('RG08', null, 'label'),
valueList('RG09', null, 'label'),
valueList('RG10', null, 'label'),
valueList('RG11', null, 'label'),
valueList('RG12', null, 'label'),
valueList('RG13', null, 'label'),
valueList('RG14', null, 'label')
];
shuffle($pages); // This will shuffle only the first level, i.e., the order or pairs
setPageOrder($pages,'AP');