Write a function to generate ‘rock', ‘paper', or ‘scissors', each answer being equally likely. Write a script that calls the function twice. The first function call generates the move by player 1, the second function call generates the move by player 2. The script should decide who wins or whether a tie resulted and display this.