The point of the different sized tags is usually that you can see which are most common. When you use rand() it will give a different output each time, which makes the point of these "tag clouds" sightly pointless.
Here's another snippet which should be more appropriate.
Here's another snippet which should be more appropriate.
http://www.bytemycode.com/snippets/snippet/415/