<?php$random1 = rand(0, 2); //random1 is 0, 1 or 2 echo "random1 is $random1\n"; //in version 8.3$randomizer = new \Random\Randomizer();$random2 = $randomizer->nextInt();//random2 is random integerecho "random2 is $random2";