M
Maziar Aflatoun
Hi everyone,
I have the following random string generator
public static string getAlphabets(int strLength)
{
string RandomString = "";
Random X = new Random();
for (int x=0; x < strLength; x++) RandomString +=(char)(X.Next(65, 90));
return RandomString;
}
The only problem is that it returnsthe extact same randomly generated string
when called more than one times. Any idea?
Tank you
Maz A.
I have the following random string generator
public static string getAlphabets(int strLength)
{
string RandomString = "";
Random X = new Random();
for (int x=0; x < strLength; x++) RandomString +=(char)(X.Next(65, 90));
return RandomString;
}
The only problem is that it returnsthe extact same randomly generated string
when called more than one times. Any idea?
Tank you
Maz A.