随机中奖记录生成方法
C++Builder 2010
void __fastcall TForm2::Button1Click(TObject *Sender)
{
Memo1->Clear();
int allCount = StrToInt(LabeledEdit1->Text);
int hitCount = StrToInt(LabeledEdit2->Text);
if (allCount<1) {
return;
}
for (int i = 0; i < allCount; i++)
{
int aInt = Random(allCount-i);
AddLog(allCount-i,aInt,hitCount);
if (a