I have a while loop that loads data from a table row into a div. After one row it loops and loads another row into a duplicate div and so on.
Now I want this loop to select rows at random but have exhausted all rows by the end without duplication.
I have rows:
1
2
3
4
5
I want (random order) rows:
3
2
5
1
4
basically load all rows but in random. I am using PHP.