Generating a Random number

what is the best way to generate a random number in range of a certain amount?

For C#:

	public int RandomNumber(int min, int max)
	{
		Random random = new Random();
		return random.Next(min, max); 
	}

Random is in the System namespace.

can you convert it to javascript?

–Eric

Much easier :wink: