create random x and y method