  In this paper we consider in detail the connection between the problem of a
polymer in a random medium and that of a quantum particle in a random
potential. We are interested in a system of finite volume where the polymer is
known to be {\it localized} inside a low minimum of the potential. We show how
the end-to-end distance of a polymer which is free to move can be obtained from
the density of states of the quantum particle using extreme value statistics.
We give a physical interpretation to the recently discovered one-step
replica-symmetry-breaking solution for the polymer (Phys. Rev. E{\bf 61}, 1729
(2000)) in terms of the statistics of localized tail states. Numerical
solutions of the variational equations for chains of different length are
performed and compared with quenched averages computed directly by using the
eigenfunctions and eigenenergies of the Schr\"odinger equation for a particle
in a one-dimensional random potential. The quantities investigated are the
radius of gyration of a free gaussian chain, its mean square distance from the
origin and the end-to-end distance of a tethered chain. The probability
distribution for the position of the chain is also investigated. The glassiness
of the system is explained and is estimated from the variance of the measured
quantities.
