def members_from_rank_range_in(<EOL>self, leaderboard_name, starting_rank, ending_rank, **options):
starting_rank -= <NUM_LIT:1><EOL>if starting_rank < <NUM_LIT:0>:<EOL><INDENT>starting_rank = <NUM_LIT:0><EOL><DEDENT>ending_rank -= <NUM_LIT:1><EOL>if ending_rank > self.total_members_in(leaderboard_name):<EOL><INDENT>ending_rank = self.total_members_in(leaderboard_name) - <NUM_LIT:1><EOL><DEDENT>raw_leader_data = []<EOL>if self.order == self.DESC:<EOL><INDENT>raw_leader_data = self.redis_connection.zrevrange(<EOL>leaderboard_name,<EOL>starting_rank,<EOL>ending_rank,<EOL>withscores=False)<EOL><DEDENT>else:<EOL><INDENT>raw_leader_data = self.redis_connection.zrange(<EOL>leaderboard_name,<EOL>starting_rank,<EOL>ending_rank,<EOL>withscores=False)<EOL><DEDENT>return self._parse_raw_members(<EOL>leaderboard_name, raw_leader_data, **options)<EOL>
Retrieve members from the named leaderboard within a given rank range.

@param leaderboard_name [String] Name of the leaderboard.
@param starting_rank [int] Starting rank (inclusive).
@param ending_rank [int] Ending rank (inclusive).
@param options [Hash] Options to be used when retrieving the data from the leaderboard.
@return members from the leaderboard that fall within the given rank range.