randomMove {LobsterCatch} | R Documentation |
The function randomly selects an angle (0:360) and moves the lobster. This function is called when a lobster is outside the area of influence.
randomMove(Lobster, dStep)
Lobster |
location of lobster in x and y coordinates |
dStep |
is how much a lobster moves in each time step |
Returns the new coordinates of each lobster