So I am trying to make this wizard battle game which will heavily use Random Number Generator for plethora of things such as choosing level, name, and spells for a enemy wizard. I have generated the basic number generator but I am wondering how do I call this to Main class? Here is the code for what I have done so far. I am absolutely new to programming so I do apologize.
using System;
namespace Battle_Wizard
{
class Program
{
static void Main(string[] args)
{
string Player;
Console.WriteLine("Hello Wizard! What is your name: (Insert your name) ");
Player = Console.ReadLine();
Console.WriteLine("So your name is "+ Player + "? " + "What a stupid name. \nPRESS ANY BUTTON FOR A BATTLE!");
Console.ReadKey();
}
public class Wizards
{
string [] names = {"Ifeus","Avutaz","Alvapan","Inawyn","Agrukey","Unageor","Anvigron","Ubus","Enoviar","Unitor"};
string [] spells = {"A Alakablam ","Y0ur m0m ","A Karate Chop ","Abra-kadabra ","A 12 Gauge Shotgun ","Telekinesis "};
string [] deathmessages = {" set their pants on fire by ", " shot in the face with a ", " perished painfully with "};
}
public class NumberGenerator
{
Random rnd = new Random();
int EnemyRoll = new Random().Next( 1, 10 );
int PlayerRoll = new Random().Next( 1, 10 );
}
}
}