Purcell, Scott <[EMAIL PROTECTED]> said something to this effect on 07/09/2001:
> Sorry to be confused, but I believe I did not create a global variable. In
> the code below that I showed, I used a my to localize the $tmp variable
> inside the for loop.?
>
> Anyway, I changed the simple code and added the use strict and use vars
> qw($rand), but now I get no random activity at all. Each time a user hits
> it, they of course receive the same 4 numbers. Not very random ....
>
> I am sure I am screwing this up somehow, was anyone able to get this to
> work, or able to get 4 random numbers each time they run the snippet of
> code?
Just out of curiosity, are you calling srand explicitly? If not,
what happens if you do, and if you are, what happens if you
don't?
(darren)
--
Reisner's Rule of Conceptual Inertia: If you think big enough, you'll
never have to do it.