How to get random user nickname from chat?

First determine a way to collect a list of names of people watching the stream. (Theres no official API)

You could collect a list of people whom has chatter in chat recently.
Poll the TMI chatters URL (thats just people in chat and is undocumented could change/break at any time)

Then add them to an array, shuffle that array a random number of times and grab one from a random point in the array.