Advertisement
Guest User

Untitled

a guest
Sep 21st, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. Imports System.Runtime.CompilerServices
  2.  
  3. Public Class Heartbeat
  4.  
  5. Sub Heartbeat()
  6. Dim lMachines As Dictionary(Of Long, SIM).ValueCollection
  7. Dim lCurrentMachine As Integer
  8. Dim lRand As Random
  9.  
  10. lRand = New Random()
  11. While (True)
  12. lMachines = SIM.GetSIMCollection()
  13. lCurrentMachine = lRand.Next(0, lMachines.Count - 1)
  14. lMachines.ElementAt(lCurrentMachine)
  15.  
  16. Threading.Thread.Sleep(1000 * 60)
  17. End While
  18.  
  19. End Sub
  20.  
  21. End Class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement