- or download this
sub rollDX { rand(shift->{dx}); }
- or download this
sub new { # this was named RNG
my $class = shift;
...
return bless $self, $class;
}
- or download this
sub roll {
my ($self, $dxx) = shift;
- or download this
sub roll {
my ($self, $dxx) = @_;
- or download this
package HollyGameAI::RNG;
use strict;
...
return $roll_dispatch->{$dxx}->();
}