Possible Duplicate:
Random number generator not working the way I had planned (C#)
I have made a simple routine which generates a random number
private int randomNumber()
{
Random random = new Random();
int randomNum = random.Next(0, 100);
Response.Write(randomNum);
return randomNum;
}
I call this at two different stages throughout my page_load in the same way:
// A/B Test
if (randomNumber() <= 50)
{
...
I'm finding though, that both numbers are always the same. Any ideas?