We consider a dilute hard-sphere Bose gas in random external potentials at low temperatures, in D=3, using the technique of pseudopotentials and the Bogoliubov transformation. At absolute zero, the random potentials can deplete the Bose condensate, though not completely. On the other hand, they generate an amount of normal fluid equal to 4/3 the condensate depletion. This is a localization effect that can destroy superfluidity at absolute zero. General features of the superfluid density in the neighborhood of this transition point agree qualitatively with experimental results on helium in porous media.