rabi.cpp:get_range (fixed vector notation)