请用通俗易懂的语言解释该代码的意思Function SJS() As String Application.Volatile Randomize Dim i,j As Integer Dim iFlag As Boolean SJS = Int(Rnd() * 10) For i = 1 To 5 iFlag = True Do While iFlag j = Int(Rnd() * 10) If InStr(SJS,j) =
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/09 05:16:53
请用通俗易懂的语言解释该代码的意思Function SJS() As String Application.Volatile Randomize Dim i,j As Integer Dim iFlag As Boolean SJS = Int(Rnd() * 10) For i = 1 To 5 iFlag = True Do While iFlag j = Int(Rnd() * 10) If InStr(SJS,j) =
请用通俗易懂的语言解释该代码的意思
Function SJS() As String Application.Volatile Randomize Dim i,j As Integer Dim iFlag As Boolean SJS = Int(Rnd() * 10) For i = 1 To 5 iFlag = True Do While iFlag j = Int(Rnd() * 10) If InStr(SJS,j) = 0 Then iFlag = False Loop SJS = SJS & j Next i End Function 请用通俗易懂的语言解释上述代码的意思,切记不要用专业名字 ,如"返回"什么的 我对代码一窍不通,请用老百姓的语言来说
请用通俗易懂的语言解释该代码的意思Function SJS() As String Application.Volatile Randomize Dim i,j As Integer Dim iFlag As Boolean SJS = Int(Rnd() * 10) For i = 1 To 5 iFlag = True Do While iFlag j = Int(Rnd() * 10) If InStr(SJS,j) =
得到一个各位均不相同的6位数,如960534、074356. if InStr(SJS, j) = 0 Then iFlag = False用于判断新产生的一位数字是否在之前的几位数中出现
麻烦采纳,谢谢!