Unlike most people who seem to want a true random number generator I need one with a few odd properties...
1) It generates an integer between 1 and N, where N is a variable between 1 and 384.
2) It generates each number once and only once.
3) It will generate every number between 1 and N if it is called N times.
It doesn't matter if each time it's run the same sequence comes out, execution time is not a major concern and I have plenty of flash space (but not enough to precompute every possible sequence).
Can anyone suggest anything?