I want a random number of boats to spawn in the sea between specific sun positions (for example, between points X:0 Y:-186 Z:0 and X:0 Y:-355 Z:0). Each of these boats will have an NPC sitting in it, and the boats will approach the ship. Also, the number of boats that appear in one night should not exceed 3.
Could you help me with how I can implement this system?