Nonsense not much to say, directly to everyone paste code, I am so ruthless ...
The key code looks like this:
int[] ss = new Int[6];
Random s = new Random ();
Console.WriteLine ("Shuangse Qiu Random:");
for (int i = 0; i < 6; i++)
{
bool B = true;
int a = S.next (1);
for (int j = 0; J < i; j +)
{
if (a = = Ss[j])
{
b = false;
i--
}
}
if (b)
{
ss[i] = A;
}
} Console.Write ("Red ball: T");
for (int i = 0; i < 6; i++)
{for
(int j = i; J < 5; j +)
{
if (Ss[i] > ss[j + 1])
{
int zhong = ss[i];
Ss[i] = ss[j + 1];
Ss[j + 1] = Zhong
}
}
Console.Write (Ss[i] + "T");
}
for (int i = 0; i < 7; i++)
{
int b = s.next (1);
if (i = = 6)
{
Console.Write ("Blue ball:" + B + "T")
;}
else
{
continue;
}
}
Console.ReadLine ();
The above is a small set to introduce the C # for you to achieve a simple shuangse Qiu extraction lottery number code, I hope to help you, if you have any questions please give me a message, small series will promptly reply to everyone. Here also thank you very much for the cloud Habitat Community website support!