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

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).

Hi @Chaitan

Check the xaml file

RandomStringGenerator.xaml (7.1 KB)

Hope this works


Hope this will help you…C# random generator