Loren Wilton wrote:
> Depending on the value of the parameter
> that Perl is deducing from that statement, you may or may not be getting the
> results you expect.

>From the doc:

srand
    Sets the random number seed for the rand operator. If EXPR is omitted,
uses a semi-random value based on the current time and process ID, among
other things.


Since this call is only done when the process id is different (i.e., in a
fork) then srand with no arguments is correct for initializing rand for the
process.

 -- sidney

Reply via email to