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

Sonderfall vereinfacht

parent fb40d004
No related branches found
No related tags found
No related merge requests found
......@@ -56,12 +56,17 @@ if [ $SIGN == 0 ]; then
else
SF=$minusFile
SCH='-'
fi
fi
for i in {1..6}; do
if [ $i == 6 ]; then # position 6: "1" or nothing
DNR[6]=$((RANDOM % 2))
if [ ${DNR[6]} == 0 ]; then DNR[6]=99; fi
if [ ${DNR[6]} == 0 ]; then
DNR[6]=99
DNR6=""
else
DNR6="1"
fi
# random digit number (99|1)
else
DNR[$i]=$((RANDOM % 10)) # random digit number (0..9)
......@@ -75,9 +80,6 @@ for i in {1..6}; do
fi
done
DNR6="1"
if [ ${DNR[6]} == 99 ]; then DNR6=""; fi
value="${SCH}${DNR6}${DP[6]}${DNR[5]}${DP[5]}${DNR[4]}${DP[4]}"
value+="${DNR[3]}${DP[3]}${DNR[2]}${DP[2]}${DNR[1]}${DP[1]}"
......
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