fjfjfjfjfjfj

【.Net】获取随机数函数

        /// <summary>
        /// Get Random number
        /// </summary>
        /// <param name="minValue"></param>
        /// <param name="maxValue"></param>
        /// <returns></returns>
        private static int GetRandom(int minValue, int maxValue)
        {
            Random rand = new Random();
            return rand.Next(minValue, maxValue);
        }

 

posted on 2013-09-19 12:46  撬棍  阅读(292)  评论(0编辑  收藏  举报

导航