A1单元格输入公式
11位数字
=text(rand()*10^11,rept(0,11))
12位数字
=text(rand()*10^12,rept(0,12))
=" "&randbetween(10000000000,99999999999) 显示的是11位数
=" "&randbetween(100000000000,999999999999) 显示的是12位数
randbetween函数是生成随机数的区间
=INT(RAND()*10^11)
=INT(RAND()*10^12)
生成11位:=RANDBETWEEN(10000000000,99999999999)
生成12位:=RANDBETWEEN(100000000000,999999999999)
生成11位:=rand()*100000000000
生成12位:=rand()*1000000000000