第1个回答 2011-01-02
代码如下
Private Sub form1_load()
randomize
dim a as integer,b as integer,c as integer,d as integer,e as integer
a=int(90*rnd)+10
b=int(90*rnd)+10
c=int(90*rnd)+10
d=int(90*rnd)+10
e=int(90*rnd)+10
print str(a) + "-" +str(b)+"-"+str(c)+"-"+str(d)+"-"+str(e)+"-"
end sub
这样窗体就会显示你要的数字了
楼上的,人家要的是两位数。。。本回答被提问者采纳