I have a function that generates 20 random numbers:
function randomAttempts()
{
$i=1;
while($i<=20)
{
echo "The number is " . rand(1,100) . "<br>";
$i++;
}
}
However, my question is - how do I echo for example just the '10th' random number or the '11th' etc?
I think I'm missing the logic here.