I get an "Ambiguous Match Exception" when I try to run the code below. I
need |x1 - x2| 80 and |y1 - y2| 100, and I want to just loop until
this condition is true.
horz1 = Int(Rnd() * 469)
vert1 = Int(Rnd() * 245)
Do
horz2 = Int(Rnd() * 469)
vert2 = Int(Rnd() * 245)
Loop Until (Math.Abs((horz 1 - horz2) 80)) And (Math.Abs((vert 1 -
vert2) 101))
Can anybody enlighten me?
Thanks
--
Jeff Ciaccio
Physics and AP Physics Teacher
Sprayberry High School; Marietta, GA
Blog: http://sprayberry.typepad.com/ciaccio
need |x1 - x2| 80 and |y1 - y2| 100, and I want to just loop until
this condition is true.
horz1 = Int(Rnd() * 469)
vert1 = Int(Rnd() * 245)
Do
horz2 = Int(Rnd() * 469)
vert2 = Int(Rnd() * 245)
Loop Until (Math.Abs((horz 1 - horz2) 80)) And (Math.Abs((vert 1 -
vert2) 101))
Can anybody enlighten me?
Thanks
--
Jeff Ciaccio
Physics and AP Physics Teacher
Sprayberry High School; Marietta, GA
Blog: http://sprayberry.typepad.com/ciaccio
Comment