Blog Details

How to Generate Random Alpha Numeric String using GetRandomFileName method from the System.IO namespace in C#

In this article, we will learn how to generate random alphanumeric string using GetRandomFileName() method from the System.IO namespace in C#. Random String is sometimes needed. So We can generate a random alphanumeric string with a built-in method on the Path type. This method found under System.IO namespace, which generates random strings with high-quality randomness.

2019-12-16