随机数解决方法
随机数怎样随机显示指定的整数,比如显示10,20,75,23[解决办法]Dim r As New RandomDim list As New ArrayL
随机数
怎样随机显示指定的整数,比如显示10,20,75,23
[解决办法]
Dim r As New Random
Dim list As New ArrayList
list.Add(10)
list.Add(20)
list.Add(75)
list.Add(23)
Dim x As Integer = r.Next(0, 4)
MsgBox(list(x).ToString())