按键精灵 怎么样随机输出几个指定数字中的一个?
展开全部
dim a(26)
a(1)="a"
a(2)="b"
a(3)="c"
a(4)="d"
a(5) ="e"
a(6)="f"
a(7)="g"
a(8)="h"
a(9)="i"
a(10) = "j"
a(11)="k"
a(12)="l"
a(13)="m"
a(14)="n"
a(15) = "o"
a(16)="p"
a(17)="q"
a(18)="r"
a(19)="s"
a(20) = "t"
a(21)="u"
a(22)="v"
a(23)="w"
a(24)="x"
a(25) = "y"
a(26) = "z"
Randomize
i = Int((26* Rnd) + 1)
n = a(i)
SayString n
上面是随机输出26个字母的其中1个,相信自己应该会改了吧!
a(1)="a"
a(2)="b"
a(3)="c"
a(4)="d"
a(5) ="e"
a(6)="f"
a(7)="g"
a(8)="h"
a(9)="i"
a(10) = "j"
a(11)="k"
a(12)="l"
a(13)="m"
a(14)="n"
a(15) = "o"
a(16)="p"
a(17)="q"
a(18)="r"
a(19)="s"
a(20) = "t"
a(21)="u"
a(22)="v"
a(23)="w"
a(24)="x"
a(25) = "y"
a(26) = "z"
Randomize
i = Int((26* Rnd) + 1)
n = a(i)
SayString n
上面是随机输出26个字母的其中1个,相信自己应该会改了吧!
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询