Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Count = 10
- For i = 1 to Count
- var[i] = Math.GetRandomNumer(100)
- TextWindow.Write(var[i] + โ,โ)
- Endfor
- Count = 10
- For i = 1 to Count
- IsFound = False
- While (!IsFound)
- TempRnd = Math.GetRandomNumer(100)
- For indx = 0 to var.Length
- If TempRnd == var[indx] Then
- TempRnd = Math.GetRandomNumer(100)
- indx = 0
- EndIf
- EndFor
- IsFound = True
- EndWhile
- TextWindow.Write(var[i] + ',')
- EndFor
- Count = 10
- For i = 1 to Count+1
- If (duplicate) Then
- i = i - 1
- duplicate = "False"
- EndIf
- var[i] = Math.GetRandomNumber(10)
- For u = 1 To i-1
- If var[i] = var[u] Then
- duplicate = "True"
- EndIf
- EndFor
- Endfor
- For y = 1 To Count
- TextWindow.Write(var[y] + ", ")
- EndFor
- numberList[0] = 0
- For i = 1 To 100
- choice = 0
- While Text.IsSubText(numberList, "=" + choice + ";")
- choice = Math.GetRandomNumber(100)
- EndWhile
- numberList[i] = choice
- EndFor
- For i = 1 To 100
- TextWindow.Write(numberList[i] + " ")
- EndFor
Add Comment
Please, Sign In to add comment