You can use the StrongRandomPassword action in the Community Commons module in the Marketplace to get a random password. https://docs.mendix.com/appstore/modules/community-commons-function-library/#39-stringutils I hope this helps.