def __create_center(self, return_index):
random_index_point = random.randint(<NUM_LIT:0>, len(self.__data[<NUM_LIT:0>]))<EOL>if random_index_point not in self.__available_indexes:<EOL><INDENT>random_index_point = self.__available_indexes.pop()<EOL><DEDENT>else:<EOL><INDENT>self.__available_indexes.remove(random_index_point)<EOL><DEDENT>if return_index:<EOL><INDENT>return random_index_point<EOL><DEDENT>return self.__data[random_index_point]<EOL>
!
        @brief Generates and returns random center.

        @param[in] return_index (bool): If True then returns index of point from input data instead of point itself.