in reply to srand and seed

Calling srand() sets up the seed for the random number generator. Calling rand() then returns a random number in the sequence denoted by the seed.
srand 10; $x = rand; srand 10; $y = rand;
In that code, $x and $y will hold the same value. That is why YOUR code produces 11 identical values. Specifically, it runs so fast that time() never changes.

_____________________________________________________
Jeff[japhy]Pinyan: Perl, regex, and perl hacker.
s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;