Hopping transport in one-dimensional random media: A master equation approach