Looking to see if there is a simple php script that can take 4 or more items in a list (item a item b item c item d etc) and randomly order them. Thanks
$array_of_things = array( 'item 1', 'item 2', 'item 3', 'item 4', 'item 5' ); $iterate = 5; for( $i = 0; $i < $iterate; $i++ ): shuffle( $array_of_things ); echo "<br />\nCommencing....<br />\n"; echo implode("<br />\n", $array_of_things ); endfor; PHP: certainly .....
<?php $array_of_things = array( 'item 1', 'item 2', 'item 3', 'item 4', 'item 5' ); echo $array_of_things[ array_rand( $array_of_things ) ]; ?> PHP: The more things that are in the list the better it'll work