excel 随机函数,生成-1到1之间,不为0的保留两位位小数=ROUND(-0.99+(0.99+0.99)*RAND(),2)该怎么写才能使它不生成0=IF(ROUND(RAND(),0),ROUNDUP(RAND()*0.99,2),-1*ROUNDUP(RAND()*0.99,2))=(INT(RAND()*(99-1+1))+1)*IF(RAND()>0.5,-1%,
来源:学生作业帮助网 编辑:六六作业网 时间:2025/01/23 09:17:26
excel 随机函数,生成-1到1之间,不为0的保留两位位小数=ROUND(-0.99+(0.99+0.99)*RAND(),2)该怎么写才能使它不生成0=IF(ROUND(RAND(),0),ROUNDUP(RAND()*0.99,2),-1*ROUNDUP(RAND()*0.99,2))=(INT(RAND()*(99-1+1))+1)*IF(RAND()>0.5,-1%,
excel 随机函数,生成-1到1之间,不为0的保留两位位小数
=ROUND(-0.99+(0.99+0.99)*RAND(),2)
该怎么写才能使它不生成0
=IF(ROUND(RAND(),0),ROUNDUP(RAND()*0.99,2),-1*ROUNDUP(RAND()*0.99,2))
=(INT(RAND()*(99-1+1))+1)*IF(RAND()>0.5,-1%,1%)
=CHOOSE(INT(RAND()*2+1),"-")&ROUND(RAND()*1+0.01,2)
以上3个都是正确的,
excel 随机函数,生成-1到1之间,不为0的保留两位位小数=ROUND(-0.99+(0.99+0.99)*RAND(),2)该怎么写才能使它不生成0=IF(ROUND(RAND(),0),ROUNDUP(RAND()*0.99,2),-1*ROUNDUP(RAND()*0.99,2))=(INT(RAND()*(99-1+1))+1)*IF(RAND()>0.5,-1%,
用下面的函数就可以了.
=IF(ROUND(RAND(),0),ROUNDUP(RAND()*0.99,2),-1*ROUNDUP(RAND()*0.99,2))
函数解析:
1、产生一个0和1的随机数据,来确认生成的数的正负值.
2、产生一个0.01到0.99的随机数.