一、随机整数公式为:
=RANDBETWEEN(1,30)*(-1)^RANDBETWEEN(1,2)
二、随机带小数的公式为:
=MAX(0.1,ROUND(RAND()*30,1))*(-1)^RANDBETWEEN(1,2) (保留1位小数)
=MAX(0.01,ROUND(RAND()*30,2))*(-1)^RANDBETWEEN(1,2) (保留2位小数)
=MAX(0.001,ROUND(RAND()*30,3))*(-1)^RANDBETWEEN(1,2) (保留3位小数)
公式=CHOOSE(RANDBETWEEN(1,2),1,-1)*RANDBETWEEN(1,30)