hi guys I tried to generate random numbers in a console app but my code doesn't work. Anyone who can help me fix my code? Here's mine:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication
{
class Program
{
static void Main(string[] args)
{
private int RandomNumber(int min, int max)
{
Random random = new Random();
return random.Next(min, max);
}
int returnValue = RandomNumber(5, 20);
}
}
}