programming-examples/c-sharp/Strings/C# Program to Randomly Generate Strings.cs
2019-11-15 12:59:38 +01:00

28 lines
570 B
C#

/*
* C# Program to Randomly Generate Strings
*/
using System;
using System.IO;
static class Random
{
public static string GetRandomString()
{
string path = Path.GetRandomFileName();
path = path.Replace(".", "");
return path;
}
}
class Program
{
static void Main()
{
Console.WriteLine(Random.GetRandomString());
Console.WriteLine(Random.GetRandomString());
Console.WriteLine(Random.GetRandomString());
Console.Read();
}
}
/*
g4jgtjvbs7hbf
jtwoj782hggjsi
3jbws63k