vb.net 随机函数出现纸牌的数字
就是有A,2,3,4,5,6,7,8,9,10,J,Q,K在文本框里面随机出里面的16个数.会的帮帮忙...
就是有A,2,3,4,5,6,7,8,9,10,J,Q,K
在文本框里面随机出里面的16个数.
会的帮帮忙 展开
在文本框里面随机出里面的16个数.
会的帮帮忙 展开
1个回答
展开全部
Dim a As Random = New Random()
Dim b As String = ""
Dim c As String() = New String() {"A", "2", "3", "4", "5", "6", "7", "8", "9", "10", "J", "Q", "K"}
For i As Integer = 1 To 16
b &= c(a.Next(0, 13)) & " "
Next
textbox1.text=b
Dim b As String = ""
Dim c As String() = New String() {"A", "2", "3", "4", "5", "6", "7", "8", "9", "10", "J", "Q", "K"}
For i As Integer = 1 To 16
b &= c(a.Next(0, 13)) & " "
Next
textbox1.text=b
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询