sub Char{ my $char=400; my $hp= $char - int(rand(20)); print $hp ; } #### $hp= $hp-int(rand(20));