I want to make a Key Code generator. I am talking about something that would allow me to generate a code like xxxx-xxxx-xxxx, but i didn’t found anything like that…
I am going to make a game where basically you solve puzzles using a computer (in game), so i wanted to make this part of the game, and i wanted to test it first in visual studio by making just a simple software just to see if it works, so i can “update” it to the game and make the system inside it.
As the player obviously needs to use the mouse and my screen have some buttons to click, i assume that i could use if (Input.GetButton("Fire1")
and then make something below that, but i only found this:
Random rnd = new Random();
int month = rnd.Next(1, 13); // creates a number between 1 and 12
int dice = rnd.Next(1, 7); // creates a number between 1 and 6
int card = rnd.Next(52); // creates a number between 0 and 51
And i don’t get where do i insert it. Could anyone help me? I would really appreciate any sugestion.