static void Main(string[] args)
{
String word = "abcdefghijklmnopqrstuvwxyz";
for (int i = 0; i < 11; i++)
{
int a= getphone(getphone(i-1));
Console.Write(word.Substring(a,1));
}
}
//create random
static int getphone(int seed)
{
Random rand = new Random(seed);
int a = rand.Next(0, 25);
return a;
}[@more@]static void Main(string[] args)
{
String word = "abcdefghijklmnopqrstuvwxyz";
for (int i = 0; i < 11; i++)
{
int a= getphone(getphone(i-1));
Console.Write(word.Substring(a,1));
}
}
//create random
static int getphone(int seed)
{
Random rand = new Random(seed);
int a = rand.Next(0, 25);
return a;
}
{
String word = "abcdefghijklmnopqrstuvwxyz";
for (int i = 0; i < 11; i++)
{
int a= getphone(getphone(i-1));
Console.Write(word.Substring(a,1));
}
}
//create random
static int getphone(int seed)
{
Random rand = new Random(seed);
int a = rand.Next(0, 25);
return a;
}[@more@]static void Main(string[] args)
{
String word = "abcdefghijklmnopqrstuvwxyz";
for (int i = 0; i < 11; i++)
{
int a= getphone(getphone(i-1));
Console.Write(word.Substring(a,1));
}
}
//create random
static int getphone(int seed)
{
Random rand = new Random(seed);
int a = rand.Next(0, 25);
return a;
}
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/310974/viewspace-998187/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/310974/viewspace-998187/