新手求解,该怎么写代码
[local]1[/local]
for (int i = 0; i < 4; i++)
{
int randomIndex = new Random().Next(1001, 1050);
Console.WriteLine(randomIndex);
}
怎么实现不重复