Is there any built in function that creates random passwords ? Asp.net simple memebership used to have a similar method
https://msdn.microsoft.com/ru-ru/library/system.guid.newguid(v=vs.110).aspx Check this out. GUID should work just fine (just remove all the '-' from it and cut required number if characters)