Is it possible generate all integer number (from 0 to 2147483647 ) randomly without repetition

154 Views Asked by At

From a mathematical point of view it's possible do what I wrote in the title?
In computer science I could resolve the problem creating an array which contains all value from 0 to 2147483647 and then shuffle the array but it requires GBs of space, another way is to generate number and save it and if it's present regenerated a new one but I need (again) lot of memory where save the numbers and the latest number could be generated after a lot of random cycle.
So there is a mathematical way for solving this problem whitout using lots of memory?