Assuming I have a simple client-server game, where the server picks random players on a very frequent base, I was wondering what is the best way to select a random player (According to the following constraints):
Solution must be high performance and highly scalable
Random spread should be relatively even (meaning if I have 3 players and pick 99 times, they will all be picked 33 times more or less)
Should only pick players who were active in the past X days (optional, but a big bonus)
The actual DB or data model used to store players isn't an issue here, as we'll select the technology in accordance to our needs.
However, high performance and scalability is (at the moment we have over 60,000 unique daily active players, and we plan on growing even more).
Thanks!