Ver original$num = 2/rand(1,2);$num2 = 2/rand(4,4); $rand = rand(1,3); switch($rand){ case 1: $num_aleatorio = $num; break; case 2: $num_aleatorio = $num2; break; case 3: $num_aleatorio = $num+$num; break;}