Generate a random number between 0.5 to 1.5 in bash

前端 未结 0 1543
谎友^
谎友^ 2021-01-11 11:17

I need random numbers like

0.624, 1.035, 0.869, 1.324 (three decimal places)

what I am using is

"0.$(($RANDOM%1000+500))"

相关标签:
回答
  • 消灭零回复
提交回复
热议问题