From b9badbde9df0f2a37a5bca42a683298588082eea Mon Sep 17 00:00:00 2001 From: waldek Date: Thu, 14 Jul 2022 14:41:23 +0200 Subject: [PATCH] fixes #1 --- advanced/learning_bash_scripting.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/advanced/learning_bash_scripting.md b/advanced/learning_bash_scripting.md index c81bb08..b8b7395 100644 --- a/advanced/learning_bash_scripting.md +++ b/advanced/learning_bash_scripting.md @@ -1227,7 +1227,7 @@ waldek@debian:~$ #!/bin/bash difficulty=100 -computernumber=$(( "$RANDOM % $difficulty")) +computernumber=$(( $RANDOM % ( $difficulty + 1))) echo "I have a number in mind between 0 and $difficulty" while true; do