Hi,
IMO this is normal behaviour.
The rand-function is always rendered when the page loads. (and when it is called)
Therefore we use this construct "if randomnumber still is empty, create a new one, else keep the old value".
So for example if the rand () command generates the number 3, it happens that the selected comment is NOT the comment which has zufall1 == 3 in the relevance equotation.
Where did you check the random number? Did you display this question? Or in the dataset?
If you compare with the displayed one, sure it will be different. As I said, it is always recalculated when called.
I made a few tests (10) and compared the displayed message with the stored random number.
It always was the correct one.
So you have to do, what was missed at the beginning - testing.
And not only that the survey works, but that the stored results match the entered values.
If none of the tests fails you are lucky; otherwise ...
BTW:
Why are there values in the "randomization group name"? This is used for something different (when you want to display questions in randomized order)
I removed them.
Best regards
Joffm