IdentityPasswordGenerator is a library for generating passwords based on ASP.NET Core Identity password options.
Get the package from NuGet.
Then in your code:
using IdentityPasswordGenerator;
using Microsoft.AspNetCore.Identity;
var passwordGenerator = new PasswordGenerator();
var options = new PasswordOptions();
var password = passwordGenerator.GeneratePassword(options);
See IPasswordGenerator for more details.
The idea of this library is coming from this Stack Overflow answer.