Entropies of random factors of sliding block codes