Im developing a app which needs will display one random element from a list every day (list of 366 items).
But I would like this app to display the same item for all users. Also I'd like this calculation to display a different (random) order the next year.
i.e user A: Jan 26th 2017 : item 32 user B: Jan 26th 2017 : item 32
user A: Jan 26th 2017 : item 27 user B: Jan 26th 2017 : item 27
Also I would like the calulation to not show the same item more than once in a given year.
Im not particulary good at maths but I am a programmer, being new to this forum apologies if this question is really basic!
Ordinarly this could be done quite easily with a central repository firing out the item to use with a internet connection but I'd like to make the app work offline.
Take the current year as a seed ot a pseudo random number generator and then use the prng to compute a random permutation of $\{1,\ldots,366\}$. Display the item corresponding to the current day of year as index.