You could do the math yourself lol. Is it worth the trouble though for some accuracy ? Perhaps.
Pseudo code:
Get a randomized angle
Get a randomized distance
Get X of start point
Get Y of start point
X of end point = X of start point + (dist * cos(angle))
Y of end point = Y of start point + (dist * sin(angle))
Set end point X
Set end point Y
Some of those would be custom scripts like Set X for point

Also, sin & cos in war3 may or may not

work in rads instead of deg so you may or may not

have to do a conversion of the angle or use it as rad from the beginning