Random User ID #
-
Quick question, how would I go about returning a random user id #?
Essentially I’m using the extra fields plugin and I want to be able to randomly display data from specific fields but from one user at a time. In order to do this I would need to find a way of generating a random user ID. I know how to generate random numbers between certain values… but I don’t know how to make it dynamic enough to account for an ever growing total of users or missing ID numbers (such as a gap where a member was… and then was deleted).
Would there be a way to produce an array of all the id’s and then randomly pick from that array?
I don’t need the actual code (although I would appreciate it), If anyone could at least point me towards some documentation, that would be awesome.
Any help would be greatly appreciated.
~Nathaniel
- The topic ‘Random User ID #’ is closed to new replies.