Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // OrtizOL - xCSw - http://ortizol.blogspot.com
- using System;
- using System.IO;
- namespace Receta.CSharp.R0521
- {
- public class UsoGetRandomFileName
- {
- public static void Main()
- {
- Console.WriteLine(Environment.NewLine);
- string cadenaAleatoria = Path.GetRandomFileName();
- for (int i = 1; i <= 25; ++i)
- {
- Console.WriteLine("Nombre de archivo aleatorio (criptográficamente fuerte): {0}",
- cadenaAleatoria);
- cadenaAleatoria = Path.GetRandomFileName();
- }
- Console.WriteLine(Environment.NewLine);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement