Help for this page

Select Code to Download


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