added functional generate number between to numbers