OK

It's cool that you got it working and it was obviously a caching issue.

I just noticed a typo in my reply -it should have been Math.random (capitalised) and it wouldn't have worked if you just copied in the text:-(

Sorry

Steve