else {
my $pos = -1;
push @cPosns, $pos while ($pos = index($zazb, 'c', $pos+1)) >= 0;
my $offset = $cPosns[rand @cPosns];
$cell = sprintf '%.2f', popnum3( $x, $y, $copycop, $offset, );
}
####
sub popnum3 {
my ( $x, $y, $z, $offset ) = @_;
if ( $y == 0 ) {
$aob[$x][0] = $initial * ( 1 + $z );
}
else {
while (1) {
$aob[$x][$y] = $aob[$offset][ $y - 1 ] * ( 1 + $z );
last;
}
}
return $aob[$x][$y];
}
####
my $pos = -1;
push @cPosns, $pos while ($pos = index($zazb, 'c', $pos+1)) >= 0;
####
else {
my $offset = $cPosns[rand @cPosns];
$cell = sprintf '%.2f', popnum3( $x, $y, $copycop, $offset, );
}