Is there any built in function that creates random passwords ? Asp.net simple memebership used to have a similar method
If you are using .NET Framework and System.Web.Security.Membership is available to you:
System.Web.Security.Membership
Check here:
string password = Membership.GeneratePassword(12, 1);
Note that this class is not available in .NET Standard or .NET Core.