<?php
/*
1. Crea una matriz con 30 posiciones y que contenga números aleatorios entre 0 y 20 (inclusive).
Uso de la función [rand](https://[Log in to view URL]
Imprima la matriz creada anteriormente.
*/
$aleatorios = array();
$max_num = 30;
for ($x=0; $x<$max_num ;$x++) {
$aleatorios = rand(1,20);
echo $aleatorios."\n";
}
To embed this program on your website, copy the following code and paste it into your website's HTML: