User Tools

Site Tools


howtos:bash_random_number_generator

Change “seq 4” to whatever amount of numbers you need:

ran="";for i in $(seq 4); do  n=$(($RANDOM%10)); ran=$ran$n; done;echo $ran
howtos/bash_random_number_generator.txt · Last modified: 26/01/2022 12:03 by domingo