How to choose random from collection(Dictionarystring,int)

  • Thread starter Thread starter HisKingdom
  • Start date Start date
H

HisKingdom

Guest
var proxyz = new Dictionary<string, int>();
proxyz.Add("138.68.161.14", 3128);
proxyz.Add("138.68.165.154", 8080);
proxyz.Add("139.59.169.246", 3128);
proxyz.Add("169.48.152.174", 3128);


client.Proxy = new WebProxy("ip", port); I randomly select the IP and port mapped to the IP from dictionary and use it as WebProxy

The IP is a string. The Port is Int32


Any idea how can this be done Thank you.

Continue reading...
 

Similar threads

P
Replies
0
Views
174
Policy standard local admin account with Active Di
P
Back
Top