Couldn't you just call srand with a specific seed? perldoc -f srand I'm also currently reading Knuth. Book 2 (Chapter 3) is all about random numbers, lots of good info if you've got the time to absorb it all (I think my brain is almost full, though... :-) Lauren > -----Original Message----- > From: Doug Rosser [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, May 16, 2000 9:32 AM > To: Perl-Win32-Users Mailing List > Subject: pseudo-random number generation, as rand() useless > > > 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: > [EMAIL PROTECTED] > To unsubscribe, forward this message to > [EMAIL PROTECTED] > For non-automated Mailing List support, send email to > [EMAIL PROTECTED] > --- 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]