Randomize()
Dim o_inta As Integer = Int((9 - 1 + 1) * Rnd() + 1), o_intn As Integer = Int((10 - 5 + 1) * Rnd() + 5), o_log结果 As Long = 0
For o_intCount As Integer = 0 To o_intn - 1
Dim o_strInt As String = ""
For o_intItem As Integer = 0 To o_intCount
o_strInt = o_strInt & o_inta
Next
o_log结果 = o_log结果 + Val(o_strInt)
Next
MsgBox("a=" & o_inta & " n=" & o_intn & " Sn=" & o_log结果, MsgBoxStyle.Information, Me.Text)