random number generator help

Tech-Archive recommends: Fix windows errors by optimizing your registry



i can not seem to get this code to work. someone please help

using System;
using System.Collections.Generic;
using System.Text;

namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
int returnValue = RandomNumber(5, 20);
Console.Write(returnValue);
}
private int RandomNumber(int min, int max)
{
Random random = new Random();
return random.Next(min, max);
}


}
}

.



Relevant Pages

  • Re: a = a++
    ... static void Main ... why is C# ignoring the post increment operator ... instead of "int". ...
    (microsoft.public.dotnet.languages.csharp)
  • Can not break out of While loop.
    ... Random random = new Random; ... int returnValue = random.Next; ...
    (microsoft.public.dotnet.languages.csharp)
  • [PATCH] epca.c: reformat comments and coding style improvements
    ... static int nbdevs, num_cards, liloconfig; ... This structure is NOT used to overlay the cards physical channel ... static void memwinoff ... static struct channel *verifyChannel ...
    (Linux-Kernel)
  • [PATCH 2/7] dlm: communication
    ... +static struct task_struct *recv_task; ... +static int nodeid_to_addr(int nodeid, struct sockaddr *retaddr) ... +static void lowcomms_data_ready ...
    (Linux-Kernel)
  • [PATCH] Fixed warnings from -Wmissing-prototypes in HOSTCFLAGS
    ... +static int get_family_id ... +static void print_cgroupstats ... -void cfag12864b_set(unsigned char x, unsigned char y) ... +static void slab_validate(struct slabinfo *s) ...
    (Linux-Kernel)