You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: projected_window.rb
    path of file: ./repos/rgeo/lib/rgeo/geographic
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

# --------------------------
    
      def random_point
        y_ = @y_min + y_span * rand
        x_ = @x_min + x_span * rand
        limits_ = @factory.projection_limits_window
        x_ -= limits_.x_span if x_ >= limits_.x_max
        @factory.unproject(@factory.projection_factory.point(x_, y_))
      end