srand(time ^ $$);
Eeew! Where did you get this from? Many, many moons ago I wrote a little CGI program that randomly returned an image as well, and I discovered that it would often return the same image twice in a row, if you have seed the random generator with time ^ $$. I posted about this to the newsgroup more than seven years ago. http://groups.google.com/groups?selm=3148E9E1.21CA6C29%40www.iaf.nl&output=gplain This resulted in the Camel II already warning against this usage, and later versions of Perl using a much better default salt.
Why, o, why, did you pick such a bad seed?
Abigail
In reply to Re: Random Imaging
by Abigail-II
in thread Random Imaging
by appex32
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |