Sobolev spaces, dimension, and random series