7,762
社区成员
发帖
与我相关
我的任务
分享
Randomize
For i = 1 to 13
s=s & Int(Rnd*10)
next i
print s
b=9999'生成1-9999的随机数
a=int(rnd()*b)'生成出来的数字
Option Explicit
Private Sub Command1_Click()
Randomize Timer
Dim s As String, i As Long
Dim sdate(25) As Byte
Cls
For i = 0 To 25 Step 2
sdate(i) = Fix(Rnd * 10) + &H30
Next
s = sdate
Debug.Print s
End Sub