echo $RANDOM
A saída será um número até 32.767 / This will output a number up to 32,767
Se você quer limitar os números aleatórios até um certo número, digite o seguinte: / If you want to limit the random number up to a certain length simply type the following:
echo $[RANDOM%X+1]
Onde X é o maior número que você quer, porém deve ser menor que 32,767 / Where X is your largest number you want, although it has to be less than 32,767
Se você quiser incluir o zero: / If you want to include zero:
echo $[RANDOM%X]
Apenas lembre que X será o número de possibilidades. / Just Remember that X is the number of possibilities.
Se você quiser um número aleátorio maior, você pode simplesmente repetir o $RANDOM / If you want a longer random number you can simply repeat the $RANDOM
echo $RANDOM$RANDOM
Até a próxima! / See you later!
