Rem start Randomize //得到 1~999 之間的一個隨機數 x = Int((999 * Rnd) + 1) //判斷這個數字是否8位數字,如果不是8位數字,就重新生成 If x<1000 Then Goto start End If SayString x