# File ../lib/roller/CWRP.rb, line 803
  def random_sector_position(sectors)
    loop do
      h_offset = (rand() * FOREST_BLOCK_OBJECT_WIDTH) - (FOREST_BLOCK_OBJECT_WIDTH / 2)
      v_offset = (rand() * FOREST_BLOCK_OBJECT_WIDTH) - (FOREST_BLOCK_OBJECT_WIDTH / 2)

      # Check which sector the random position is in.
      if h_offset.abs > v_offset.abs
        # Horizontal offset is greater than vertical one, so must be W or E.
        if h_offset > 0
          sector = :E
        else
          sector = :W
        end
      else
        # Vertical offset is greater thant horizontal one, so must be N or S.
        if v_offset > 0
          sector = :N
        else
          sector = :S
        end
      end
      
      return [h_offset, v_offset] if sectors.include? sector
    end
  end