I now use the method of
https://github.com/HomelessPhD/BTC32to generate a random alpha number.
My BTC32_narrow_search.sh
#!/bin/bash
do
A=$(( $RANDOM % 6 + 3 ))
B=$((RANDOM%8999+1000))
C=$((RANDOM%8999+1000))
D=$((RANDOM%8999+1000))
E=$((RANDOM%8999+1000))
F=$((RANDOM%8999+1000))
G=$((RANDOM%8999+1000))
cat /dev/null > task_file.txt
alpha="0.$A$B$C$D$E$F$G"
line="alpha_to_seek = vpa([$alpha], vpa_acc)"
sed -i '9d' GenerateTask.m
sed -i "9i ${line};" GenerateTask.m
octave --no-line-editing --quiet GenerateTask.m >/dev/null 2>&1
for task_line in $(cat task_file.txt); do
# Pars fields in "task_file.txt" lines
bits=`echo $task_line | cut -d ',' -f1`
alpha=`echo $task_line | cut -d ',' -f2`
interval=`echo $task_line | cut -d ',' -f3`
address=`echo $task_line | cut -d ',' -f4`
done
./cuBitCrack -b 100 -t 256 -p 2633 --keyspace "$interval" "$address" --out Lottery.txt
done
Octave or matlab must be installed to be able to generate these space coordinates.