wouldn't it be easier to use `(1 to 50000).toVector``