can someone help me in generating random float number with given specific range of number in bash (shell). I found below command but is their any other option ? (using awk or $rand commands.)
jot -p2 0 1
If you have GNU coreutils available, you could go with:
seq 0 .01 1 | shuf | head -n1
Where 0 is the start (inclusive), .01 is the increment, and 1 is the end (inclusive).
0
.01
1
2.1m questions
2.1m answers
60 comments
57.0k users