生成110之间的随机数 Random randObj = new Random(); int start=1;//随机数可取该下界值 int end=10;//随机数不能取该上界值 for( int j= start ; j < end; j++ ){ Console.Write( "{0,11} ",randObj.Next( start, end) ); } 就可以生成1-10之间的随机数了 Software, the promoters of the progress of the times!------Shawn