How to create random name picker like slot machine

Hi all,

Anyone knows how I can do a simple slot machine which can pick random names based on the names I put in the text area?

It is almost similar to this

But I want the chosen name to be in the middle instead of the top and more random.