标签:重复 lin size hash span write number add nsvalue
Hashtable ha = new Hashtable();
Random rm = new Random();
for (int i = 0; ha.Count < 4; i++)
{
int number = rm.Next(1,10);
if (!ha.ContainsValue(number))
{
ha.Add(number, number);
Console.WriteLine(number.ToString());
}
}
标签:重复 lin size hash span write number add nsvalue
原文地址:http://www.cnblogs.com/qingnianxu/p/6912802.html