示例#1
0
        /// <summary>
        /// Creates an anonymous <see langword="char"/> value within the range of basic Latin characters using
        /// a uniform distribution algorithm.
        /// </summary>
        /// <param name="anon">The anonymous data provider to use.</param>
        /// <returns>A random basic Latin character.</returns>
        /// <exception cref="ArgumentNullException"><paramref name="anon"/> is <c>null</c>.</exception>
        public static char AnyBasicLatinChar(this IAnonymousData anon)
        {
            Argument.NotNull(anon, nameof(anon));

            return(anon.AnyBasicLatinChar(Distribution.Uniform));
        }