When Alpine Guide enters, you may search your library for a Mountain card, put that card onto the battlefield tapped, then shuffle.
Alpine Guide attacks each combat if able.
When Alpine Guide leaves the battlefield, sacrifice a Mountain.
If Alpine Guide can't attack for any reason (such as being tapped or having come under a player's control that turn), then it doesn't attack. If there's a cost associated with having it attack, its controller isn't forced to pay that cost, so it doesn't have to attack in that case either.
Random a card of Magic: The Gathering (MTG), but you can also roll the D20 dice, random a Planeswalker, have fun with the random rules and more.