How can i give players random job or class ?

Hi, when player got in lobby and when game started i want to give players random jobs that exist in the game ? does anybody can tell me how to do that?