[C# + HTTP Wrappers] A Method for Random Usernames
First you are going to need a random number. There is over 30000000 people on gaia so thats a good number to use.
So the next line is going to generate the number. This will be the user id.
No "random.Next(MIN, MAX)" sets the limit.
So the first string will be the URL of a random profile. "Wrapper.Get("http://www.gaiaonline.com/profiles/" + rndid);" As you can see it adds the random number to the end of the URL.
The second string is a Between statement, you need a wrapper that supports this.
"Wrapper.Between(Get, "http://www.gaiaonline.com/profiles/", "/");" This will look for the link on the random profile. The output of this string will most likely produce a username.
Outputing this string is easy you can use it for what ever you need to to do or just put it on a label.
Random random = new Random();So the next line is going to generate the number. This will be the user id.
No "random.Next(MIN, MAX)" sets the limit.
Random random = new Random();
Int32 rndid = random.Next(5000, 30000000);
So the first string will be the URL of a random profile. "Wrapper.Get("http://www.gaiaonline.com/profiles/" + rndid);" As you can see it adds the random number to the end of the URL.
The second string is a Between statement, you need a wrapper that supports this.
"Wrapper.Between(Get, "http://www.gaiaonline.com/profiles/", "/");" This will look for the link on the random profile. The output of this string will most likely produce a username.
Random random = new Random();
Int32 rndid = random.Next(5000, 25000000);
String Get = Wrapper.Get("http://www.gaiaonline.com/profiles/" + rndid);
String Name = Wrapper.Between(Get, "http://www.gaiaonline.com/profiles/", "/");
Outputing this string is easy you can use it for what ever you need to to do or just put it on a label.
label1.Text = Name;