We have performed Monte Carlo studies of the three-dimensional
XY model with random uniaxial anisotropy, which is a model for randomly pinned spin-density waves. We study $L\ifmmode\times\else\texttimes\fi{}L\ifmmode\times\else\texttimes\fi{}L$ simple cubic lattices using
L values in the range 16--64, and with random anisotropy strengths of
D/2J=1, 2, 3, 6, and $\ensuremath{\infty}$. There is a well-defined finite-temperature critical point,
Tc, for each of these values of
D/2J. We present results for the angle-averaged magnetic structure factor
S(k) at
Tc for
L=64. We also use finite-size scaling analysis to study scaling functions for the critical behavior of the specific heat, the magnetization, and the longitudinal magnetic susceptibility. Good data collapse of the scaling functions over a wide range of
T is seen for
D/2J=6 and $\ensuremath{\infty}$. For our finite values of
D/2J the scaled magnetization function increases with
L below
Tc and appears to approach an
L-independent limit for large
L. This suggests that the system is ferromagnetic below
Tc.
We study the ferromagnetic Ising model on very long strips of random widths using transfer matrix techniques. The width distribution is Gaussian with mean L and rms deviation \ensuremath{\Delta}L, which may be constant for any L (type I) or proportional to L (type II). We calculate the initial susceptibility for strips with 4\ensuremath{\leqslant}L\ensuremath{\leqslant}12, obtaining estimates of the ratio of exponents (\ensuremath{\gamma}/\ensuremath{\nu}
)L and the pseudocritical temperature
T∗(L,L-1). In strips of type I, those estimates satisfy finite-size scaling, with finite-size corrections increasing with \ensuremath{\Delta}L, and in strips of type II it is satisfied only for very large lengths L. We discuss the influence of nonuniform thicknesses on the magnetism of low-dimensional systems, comparing the finite-size corrections of this problem to those which fit the experimental data of magnetic thin films.