random number generator help
- From: "Mike Langworthy" <mcl1982@xxxxxxxxxxx>
- Date: Fri, 27 Apr 2007 01:26:21 -0400
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);
}
}
}
.
- Follow-Ups:
- Re: random number generator help
- From: Alberto Poblacion
- Re: random number generator help
- Prev by Date: Re: Finding what caused TextBox.Text to change?
- Next by Date: Creating a very simple report: Crystal Report and SetParameterValue ?
- Previous by thread: Finding what caused TextBox.Text to change?
- Next by thread: Re: random number generator help
- Index(es):
Relevant Pages
|