How to generate random password without using Custom Activity?

Hi @Random_Bot ,

Try with below, hope its help you.

char as string = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
randomtext as string = New String(Enumerable.Repeat(characters, 9).Select(Function(s) s((New Random()).Next(s.Length))).ToArray())
output as string = String.Format("{0}@{1}", System.Globalization.CultureInfo.CurrentCulture.TextInfo.ToTitleCase(randomText), New Random().Next(10000).ToString("D4"))

Regards,
Vinit Mhatre

2 Likes