Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- namespace ConsoleApp8
- {
- class Program
- {
- static Random gen = new Random();
- static string Generation(int N) {
- string str = "";
- for (int i = 0; i < N; i++) {
- str += (char)gen.Next('a', 'z' + 1);
- }
- return str;
- }
- static void Main(string[] args)
- {
- Console.WriteLine(Generation(10));
- Console.ReadLine();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement