- $RANDOM
Generate random output
A Bash script that will generate a random number. If it is bigger that 10 then print the number.
examples/linux/generate_random_output.sh
#!/bin/bash v=$RANDOM if [ "$v" -gt 10 ] then echo $v fi
A Bash script that will generate a random number. If it is bigger that 10 then print the number.
#!/bin/bash v=$RANDOM if [ "$v" -gt 10 ] then echo $v fi