/// <summary> /// Creates an anonymous <see cref="bool"/> value using a uniform distribution algorithm. /// </summary> /// <param name="anon">The anonymous data provider to use.</param> /// <returns>A random <see cref="bool"/> value.</returns> /// <exception cref="ArgumentNullException"><paramref name="anon"/> is <see langword="null"/>.</exception> public static bool AnyBool(this IAnonymousData anon) { Argument.NotNull(anon, nameof(anon)); return(anon.AnyBool(Distribution.Uniform)); }
/// <summary> /// Creates a random <see langword="string"/> value representing a full name. /// </summary> /// <param name="anon">The anonymous data provider to use.</param> /// <returns>A random full name.</returns> /// <exception cref="ArgumentNullException"><paramref name="anon"/> is <c>null</c>.</exception> public static string AnyFullName(this IAnonymousData anon) { Argument.NotNull(anon, nameof(anon)); return(anon.AnyFullName(anon.AnyBool())); }