J
Jeff Ciaccio
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((horz1 - horz2) > 80)) And (Math.Abs((vert1 -
vert2) > 101))
Can anybody enlighten me?
Thanks
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((horz1 - horz2) > 80)) And (Math.Abs((vert1 -
vert2) > 101))
Can anybody enlighten me?
Thanks