Using a queue

First of all, Hi!

So here is my problem, I am writing a simple game in which the user enters directions into the console to move a robot around a room, in which there are various pits it could fall in to. The way I wish to do this is to use a randomizer to throw random possible directions into a queue, presenting the user with 3 possible moves to choose from.

Each time it would throw more moves into the queue, until the user reaches the required target for the game to complete. On top of this the robot would have a 50% chance of making a random move.

How would one go about implementing the queue and throwing random directions into it?