Viewing 2 replies - 1 through 2 (of 2 total)
  • how are you getting this list of items? If you are returning an array then using a loop to echo them out, you can just use PHPs shuffle()

    Thread Starter bouncepartyrentals

    (@bouncepartyrentals)

    That would work but I can not find a clean code that looks good, results look like this:

    array(“a”=>”red”,”b”=>”green”,”c”=>”blue”,”d”=>”yellow”,”e”=>”purple”);

    Do you happen to have a code you would be willing to share that will display results as a list and without the word “array” and with out the extra charters like (“a”=>”

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Randomize, Shuffle or Scramble a List of Items’ is closed to new replies.