Computation of quantum-transport properties by random-matrix theory