skip to Main Content

php pseudo-random distribution in a loop

I have some code that generates a random output based on prior parameters from different arrays Data setup: $persons = array("Old", "Young", "Child"); $moods = array("neutral", "happy", "sad"); $newarray= ""; shuffle($persons ); $persons2 = array_merge(...array_fill(1, 92, $persons )); $persons2 =…

VIEW QUESTION
Back To Top
Search