Randomization

In reply to dave_59:

I get it now.
Thanks for the quick response Dave :)

One more question,
The difference between $srandom() and set_randstate() is that srandom can be used in all coding blocks(meaning with/without classes) whereas set_randstate is applicable only with respect to class->objects.
So, $srandom has more advantage over set_randstate. Is this correct?