private int RandomNumber(int min, int max)
{
Random random = new Random();
return random.Next(3, 9);
}
But i need the random number it generates to go into this line of code where the R is
int x = pbhorse1.Location.X;
int y = pbhorse1.Location.Y;
pbhorse1.Location = new Point(x + R , y);
ive thought i could do some thing like
int R = Randomor
new Point(x + random , y);
but it says system.Random is a 'type' but is being used like a 'variable'
or am i going at this all wrong ,
and thank you for all your time and help
This post has been edited by frost-tien: 06 December 2012 - 01:23 PM

New Topic/Question
Reply



MultiQuote








|