5) ) { $word = $onePre[rand(0,count($onePre)-1)]; } elseif ( $j==0 && $sc>1 && (rand(0,10)==0) ) { $word = $sylPre[rand(0,count($sylPre)-1)]; } else { $type = rand(0,20); if ($type<1) $sSt = $sylStart3[rand(0,count($sylStart3)-1)]; elseif ($type>13) $sSt = $sylStart2[rand(0,count($sylStart2)-1)]; else $sSt = $sylStart1[rand(0,count($sylStart1)-1)]; $s1 = explode('-',$sSt[0]); $s2 = explode('-',$sSt[1]); $s1 = (count($s1)>0) ? $s1[rand(0,count($s1)-1)] : ''; $s2 = (count($s2)>0) ? $s2[rand(0,count($s2)-1)] : ''; $word .= $s1.$s2; if ( ( $j==($sc-1) && rand(0,10)>7 ) || rand(0,10)==0 ) { $word .= $sylEnd[rand(0,count($sylEnd)-1)]; } } } $wCnt++; if ($newLine) { $newLine = false; echo ucfirst($word); } else echo $word; if ($wCnt%$wPerLine==0) { echo '
'; $newLine = true; } else echo ' '; } ?>