老师,随机生成一个108位的含数字和<>+-*/ 的字符串怎么生成?
[此贴子已经被作者于2024/4/2 13:13:18编辑过]
Dim s As String = "0123456789<>+-*/"
Dim zf108 As String = ""
Dim Val3 As Integer
For i As Integer = 1 To 108
Val3 = Rand.Next(0,15)
zf108 = zf108 & s.Chars(val3)
Next
Output.Show(zf108)
Dim s As String = "0123456789<>+-*/"
Dim zf108 As String = Rand.Next(0,9)
Dim Val3 As Integer
For i As Integer = 1 To 107
Val3 = Rand.Next(0,15)
zf108 = zf108 & s.Chars(val3)
Next
Output.Show(zf108)