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...
In reply to Re: Re: Random number generator
by bart
in thread Random number generator
by Chady
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |