摘要:
从1~1000中生成不重复的随机数100个,用到了hashtable,这样的话减少检索重复数的范围,这个也是面试时经常问到的一个题目。代码如下:Int32 count = 0; Dictionary<Int32,IList<Int32>> results=new Dictionary<int,IList<int>>(); while (count &... 阅读全文
posted @ 2010-11-18 11:35
chenping2008
阅读(3355)
评论(2)
推荐(0)
浙公网安备 33010602011771号