How did you determine this?  When I run the following code twice I get the
same results.  Which is what I would expect.  Is this not the behaviour that
you are describing?


srand(1.1);

for($i=0; $i < 10; $i++)
        {
        print (rand(100) . " ");
        }
print "\n";



> Behalf Of Doug Rosser
>
>
> It seems that Perl versions later than 5.004 will automatically
> call srand() if you use rand(). This is totally the opposite of
> what I need, as I need a consistently reproducible stream of
> bytes that is "pseudo-random" (because I don't want this stream
> of bytes to be compressible). I need this pseudo-randomness for
> network testing. Just iterating over the ASCII character set or
> somesuch won't work. My byte-stream must be statistically random,
> but reproducible so I know the network is passing packets without
> data corruption.
>
> Anybody know how I can call rand() without Perl assuming I want
> srand() being called?
>
> Douglas "X" Rosser
> Intel Contractor Weenie


---
You are currently subscribed to perl-win32-users as: [archive@jab.org]
To unsubscribe, forward this message to
         [EMAIL PROTECTED]
For non-automated Mailing List support, send email to  
         [EMAIL PROTECTED]

Reply via email to