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

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