The matrix in which the line will be drawn.
The intended length (intersected tiles) of the resulting line, null will use a random length within the matrix
The direction the line will extend towards, null will use a random direction within the matrix
The maximum ranges for the point. If null, the matrix will be used.
Generate a random starting point for a line with the provided length and direction.