[Freedom-misc] Re : Looking for an autoclicker

lcerf at dcc.ufmg.br lcerf at dcc.ufmg.br
Fri Mar 20 03:20:49 CET 2020

Due to the way it is generated and considering that bash does not understand  
floating point numbers - it is always a string.

Sure.  What I meant is $WAIT only contains digits and the dot; no special  
character the shell would interpret and that would justify the need for  

"$(( RANDOM % 9 ))" is a random int between 0 and 9

No, it is not.  It is an integer between 0 and 8.  $(( RANDOM % 10 )) would  
generate an integer between 0 and 9.  And, even with that change, it is not  
enough to reach 2 seconds.  And that is not flexible: for instance, it cannot  
be adapted to have a random delay between 1 and 3 seconds.  And the .1s  
granularity may be too coarse, depending on the application.

More information about the Freedom-misc mailing list