Lines Matching refs:totalWeight
449 $totalWeight = 0;
454 $totalWeight += (int) $arr[1];
474 array_push($toc, $this->dadaMakeHeadline($words, $totalWeight)); // $toc
483 echo $this->dadaMakeParagraph($words, $totalWeight);
490 echo $this->dadaMakeSection($words, $totalWeight, $hl);
494 private function dadaMakeSection($words, $totalWeight, $hl) { argument
516 $sec .= $this->dadaMakeParagraph($words, $totalWeight);
523 private function dadaMakeHeadline($words, $totalWeight) { argument
534 array_push($hlArr, $this->dadaSelectRandomWord($words, $totalWeight));
546 private function dadaMakeParagraph($words, $totalWeight) { argument
553 array_push($paragraph, $this->dadaMakeSentence($words, $totalWeight));
560 private function dadaMakeSentence($words, $totalWeight) { argument
568 array_push($sentence, $this->dadaSelectRandomWord($words, $totalWeight));
575 private function dadaSelectRandomWord($list, $totalWeight) { argument
578 $rand = mt_rand(0, $totalWeight);