make randSelect usable for discontinouous ranges