js生成四位随机数的简便方法时间:2023-11-15 11:33:26 do out = Math.floor(Math.random()*10000); while( out < 1000 ) alert( out );