I want to make a program in Java that generates numbers between 1 and 1 million, no number should be duplicated nor should anyone be missed. I dont know where to start. I cant keep a record of all the numbers i have used, that would be unpractical. How do i do this?
Share
Store the integers from 1 to 1,000,000 in an array list. Randomly shuffle the list and print out its contents.