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

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