I need to create a list of numbers from a range (for example from x to y) in a random order so that every order has an equal chance.
I need this for a music player I
There are a number of methods of generating permutations without needing to store the state. See this question.