Is this the post you're talking about? If so, I would need to see the full code, or at least the fuller code. I would need enough to both run these two loops that you are talking about and in such a way that I could repeat the error/problem on a scratch page I could setup and run on wamp.
What exactly is the problem? Is it that you get a different random item each time? First time I got the same one. Second time I got two different ones.
I can tell you this, if you keep going:
Code:
$lemma = rand (0, count($quotations) -1);
$menuLabelIndex = $lemma;
unset ($lemma);
each time, the likelihood of getting a different result is high, because each time you do this, you potentially get a different random number.