I have an assignment for school that I can't figure out. I have to write a code that simulates the path of an aircraft.Here is the assignment:
Calculate and store in an 80 x 20 2D array the flight paths of six spacecrafts. Each flight path is a straight line between 2 randomly selected points on the array's perimeter.
I'm taking an intro to c++ class and the last things we covered were arrays and functions. I have no idea how to randomly select and connect lines on a 2d array's perimeter. Can someone point me in the right direction?