Answers for "use random to get dice number between 1 to 6 in shell script"

8

use random to get dice number between 1 to 6 in shell script

$(( ( RANDOM % 10 )  + 1 ))
Posted by: Guest on March-23-2020
0

use random to get dice number between 1 to 6 in shell script

$(( ( RANDOM % 5 + 1 ))
Posted by: Guest on July-28-2021
0

use random to get dice number between 1 to 6 in shell script

$(( ( RANDOM % 6 ) + 1 ))
Posted by: Guest on September-22-2021

Code answers related to "use random to get dice number between 1 to 6 in shell script"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language