vendredi 11 novembre 2022

Making random string in c#

How can i to make a random srring with c#??

I try this: Random randomnumber = new random(); Var myrandomnumber = random.next(1, 4);

String [] words = {"ROCK", "PAPER", "SCISSORS"}; Console.writeline($"computer:{myrandomnumber}");




Aucun commentaire:

Enregistrer un commentaire