Protected void button#click (Object sender, eventargs E)
{
String [] Qian = new string [52] {"ahe", "2he", "3He", "4He", "5He", "6he", "7he ", "8he", "9he", "10he", "jhe", "QHE", "Khe ",
"Ah", "2 H", "3 H", "4 H", "5 H", "6 H", "7 H", "8 h ", "9 h", "10 H", "Hour", "QH", "KH", "am", "2 m", "3 m ", "4 m", "5 m", "6 m", "7 m", "8 m", "9 m", "10 m", "JM ", "QM", "km ",
"Af", "2f", "3f", "4f", "5f", "6f", "7f", "8f", "9f", "10f ", "JF", "QF", "KF "};
Response. Write ("before shuffling" + "<br> ");
Foreach (string S1 in Qian)
{
Response. Write (S1 + "");
}
System. Random R1 = new random ();
// System. Random r2 = new random ();
For (Int J = 0; j <5200; j ++)
{
Int A = convert. toint32 (r1.next (0, 51 ));
Int B = convert. toint32 (r1.next (0, 51 ));
String T = string. empty;
T = Qian [a];
Qian [a] = Qian [B];
Qian [B] = T;
}
Response. Write ("<br>" + "after shuffling:" + "<br> ");
Foreach (string s in Qian)
{
Response. Write (S + "");
}
}