hackergarten session: build a more robust quantity range generator