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
1.4m articles
1.4m replys
5 comments
57.0k users