public Random::paragraphs($paragraph_count = 12)
Generate paragraphs separated by double new line.
int $paragraph_count:
string
public function paragraphs($paragraph_count = 12) { $output = ''; for ($i = 1; $i <= $paragraph_count; $i++) { $output .= $this->sentences(mt_rand(20, 60)) . "\n\n"; } return $output; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Component!Utility!Random.php/function/Random::paragraphs/8.1.x