The easiest way to choose a card at random from your graveyard is to turn your graveyard face down, shuffle it, and pick a card. You’re not normally allowed to reorder your graveyard, but since this card lets you do it anyway, it’s okay to mix the cards up while you’re picking randomly.