When you have to generate random passwords for users, you can execute the get-random command let on PowerShell to create it.
Generate Random Number
get-random -maximum 2000 -minimum 100
This command, when executed on PowerShell, creates a number between 1999 (not 2000 and always set one number higher in maximum) and 100.