in reply to Re: Random number generator
in thread Random number generator

Your constructor creates a hash but then doesn't store anything in it.
A really useful object oriented random module would have each object have their own, independent, pseudo-random generator. Instead, they all share and use the underlying common one that's built into Perl.

But then, writing a module because it then no longer needs anything but perl... There's a flaw in that logic, but I can't quite put my finger on it...

Replies are listed 'Best First'.
Re: Re: Re: Random number generator
by Chady (Priest) on Apr 01, 2003 at 17:21 UTC

    There's a flaw allright.. but it's not in the logic. It's in the date ;)


    He who asks will be a fool for five minutes, but he who doesn't ask will remain a fool for life.

    Chady | http://chady.net/