Fill two arrays with random numbers so that the numbers in these two arrays do not repeat. Filling should occur using rand.
define ("B" , 4); define ("C" , 4); $D = []; $E = []; for ($i = 0; $i < B; $i++) { for ($j = 0; $j < C; $j++){ $D[$i] = rand(0 , 8); $E[$j] = rand(0 , 8); } } foreach ($D as $V){ foreach ($E as $B){ if (array($V) == array($B)){ } } }
rand()and check what is not repeated? - Yuriy Prokopets