How do I make a random generator for the x and y value

You will need to give us more than that to go on...