Skip to content
Snippets Groups Projects
Commit 8ac1a4b5 authored by Rolf Niepraschk's avatar Rolf Niepraschk
Browse files

Test zu "dot position 0" (=no dot)

parent 88e7f1ce
No related branches found
No related tags found
No related merge requests found
......@@ -130,7 +130,8 @@ edigitPos[3]='+550+191'
for ((FNb=1; FNb<=MAX_FILES; FNb++)); do
value=""
DPR=$((RANDOM % $NUMBER_OF_DIGITS + 1)) # random dot position (1..$NUMBER_OF_DIGITS)
#DPR=$((RANDOM % $NUMBER_OF_DIGITS + 1)) # random dot position (1..$NUMBER_OF_DIGITS)
DPR=$((RANDOM % ($NUMBER_OF_DIGITS + 1))) # random dot position (0..$NUMBER_OF_DIGITS)
for (( i=1; i<=$MAX_DIGITS; i++ )); do
if (( $i <= $NUMBER_OF_DIGITS )); then
R=$((RANDOM % 18)) # random digit number (0..17)
......@@ -140,7 +141,7 @@ for (( i=1; i<=$MAX_DIGITS; i++ )); do
eval DOT$i="$dotFile"
value+="."
else
eval DOT$i=$emptyCanvas;
eval DOT$i=$emptyCanvas;# also for dot position "0"
fi
else
eval DIGIT$i=$emptyCanvas;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment