Solutions of Master Equations and Related Random Walks on Quenched Linear Chains