Is there a plugin that randomly chooses a user? Like something for a giveaway? FOr wordpress though? If you could help me out that'd be awesome guys, I'd add rep.
Can you post more details ? From where to choose a user ? A user registered to your wp blog ? Should be easy to select a random user but post here more details.
I don't thinkthis is what he need. I understand that you need to select a random user from existing users not to generate a new username. You can do that pretty simple..I think into the users table (on your database) you have unique ID for each username (the ID is autoincremental so it's unique ).You need to make a little php script to generate a number (ID) and to get the user with this ID from databse. Will be like that: $total_num_of_users = ......... //get the total number of users $randim_id = rand(1, $total_num_of_users); //here get the username with the ID $randim_id Code (markup): Now you will have a random username selected from your db ( the username with the id $randim_id ).