发布网友 发布时间:2024-10-24 00:58
共1个回答
热心网友 时间:2024-11-16 02:55
List<int> result = new List<int>();
while(result.Count<20)
{
int curNum = new Radom().Next(1,100);
if(result.Contains(curNum))
{
continue;
}
result.Add(curNum);
}
Response.Write(string.Join(',',curNum.ToArray());