Evolution is built on random mutations. If the mutation confers some sort of survival advantage and this trait is then passed on, it is no longer random but 'selected' because of the advantage it confers.