Generate a random character and append to a string

I need to generate two random Uppercase characters and append it to random generate password. If any leads helpful

@Chaitan
Create a variable of type System.Random. Let’s say it’s called rnd.
Then, whenever you need a letter you can do Convert.ToChar(rnd.Next(65,91)) to get a random character between A and Z. This works because the ASCII value for A is 65 and for Z is 90.

Try something like this. It just needs to be translated to UiPath and adjusted to your needs (aka, remove the numbers from the string).

https://social.msdn.microsoft.com/Forums/vstudio/en-US/ef77dc83-2796-406f-a95d-4cbf82c2e431/vbnet-generate-a-random-string-of-numbers-and-letters

Hi @Chaitan

Check the xaml file

RandomStringGenerator.xaml (7.1 KB)

Hope this works

Thanks

Hope this will help you…C# random generator