vendredi 1 mars 2019

Hi, i am new to c# and i would like to know how can i generate random string that the user inputed. like if he entered 1w, 2e 3r then random 1w

static class program
{        
    static void Main(string[] args)
    {
        string n;
        int a;
        Console.WriteLine("How many names do you have?");
// The user inputs how many strings does he want to randomly generate 1
        a = int.Parse(Console.ReadLine());
//Letting him to enter the names (in order to how many names did he want)
        for(int i = 0; i < a; i++)
        {
            n = Console.ReadLine();
        }

//here i want to randomly generate one name of the ones that he entered, what to do?




Aucun commentaire:

Enregistrer un commentaire