Random walks and chemical networks