Run of the mill

What is the exact meaning of the expression "run of the mill" and its origin? Thanks.

It means ordinary or average and is believed to have originated in textile or flour mills.