RandomExtensions

        /// <summary>
        /// 返回随机布尔值
        /// </summary>
        /// <param name="random"></param>
        /// <returns>随机布尔值</returns>
        public static bool NextBoolean(this Random random)
        
        /// <summary>
        /// 返回指定枚举类型的随机枚举值
        /// </summary>
        /// <param name="random"></param>
        /// <returns>指定枚举类型的随机枚举值</returns>
        public static T NextEnum<T>(this Random random) where T : struct
        
        /// <summary>
        /// 返回随机数填充的指定长度的数组
        /// </summary>
        /// <param name="random"></param>
        /// <param name="length">数组长度</param>
        /// <returns>随机数填充的指定长度的数组</returns>
        public static byte[] NextBytes(this Random random, int length)
        
        /// <summary>
        /// 返回数组中的随机元素
        /// </summary>
        /// <typeparam name="T">元素类型</typeparam>
        /// <param name="random"></param>
        /// <param name="items">元素数组</param>
        /// <returns>元素数组中的某个随机项</returns>
        public static T NextItem<T>(this Random random, T[] items)
        
        /// <summary>
        /// 返回指定时间段内的随机时间值
        /// </summary>
        /// <param name="random"></param>
        /// <param name="minValue">时间范围的最小值</param>
        /// <param name="maxValue">时间范围的最大值</param>
        /// <returns>指定时间段内的随机时间值</returns>
        public static DateTime NextDateTime(this Random random, DateTime minValue, DateTime maxValue)
        
        /// <summary>
        /// 返回随机时间值
        /// </summary>
        /// <param name="random"></param>
        /// <returns>随机时间值</returns>
        public static DateTime NextDateTime(this Random random)
        
        /// <summary>
        /// 获取指定的长度的随机数字字符串
        /// </summary>
        /// <param name="random"></param>
        /// <param name="length">要获取随机数长度</param>
        /// <returns>指定长度的随机数字符串</returns>
        public static string NextNumberString(this Random random, int length)
        
        /// <summary>
        /// 获取指定的长度的随机字母字符串
        /// </summary>
        /// <param name="random"></param>
        /// <param name="length">要获取随机数长度</param>
        /// <returns>指定长度的随机字母组成字符串</returns>
        public static string NextLetterString(this Random random, int length)
        
        /// <summary>
        /// 获取指定的长度的随机字母和数字字符串
        /// </summary>
        /// <param name="random"></param>
        /// <param name="length">要获取随机数长度</param>
        /// <returns>指定长度的随机字母和数字组成字符串</returns>
        public static string NextLetterAndNumberString(this Random random, int length)
        
        /// <summary>
        /// 获取随机的姓名
        /// </summary>
        public static string NextSurName(this Random random)
        
        /// <summary>
        /// 获取随机的民族
        /// </summary>
        public static string NextNationName(this Random random)
        
        /// <summary>
        /// 获取随机手机号
        /// </summary>
        /// <param name="random"></param>
        /// <param name="sections">指定手机号段,号段字符串必须是7位数值</param>
        /// <returns></returns>
        public static string NextPhoneNumber(this Random random, params string[] sections)
        
        /// <summary>
        /// 获取随机身份证号
        /// </summary>
        /// <param name="random"></param>
        /// <param name="areaCodes">指定的地区码</param>
        /// <returns></returns>
        public static string NextIdentityCardId(this Random random, params string[] areaCodes)
        
        /// <summary>
        /// 从指定源集合中获取排除指定元素的指定个数的随机项集合
        /// </summary>
        /// <typeparam name="T">项类型</typeparam>
        /// <param name="random"></param>
        /// <param name="source">源集合</param>
        /// <param name="count">要获取的子集合的项数量</param>
        /// <param name="excepts">要排除的项集合</param>
        /// <returns></returns>
        public static List<T> NextItems<T>(this Random random, T[] source, int count, params T[] excepts)
        
        /// <summary>
        /// 从指定数值范围中获取排除指定数值外的指定个数随机数值集合
        /// </summary>
        /// <param name="random"></param>
        /// <param name="min">数值范围小值</param>
        /// <param name="max">数值范围大值</param>
        /// <param name="count">要获取的子集合元素数量</param>
        /// <param name="excepts">要排除的数值</param>
        /// <returns></returns>
        public static List<int> NextItems(this Random random, int min, int max, int count, params int[] excepts)