+function testNoticeContent()
+{
+ global $words;
+
+ if (is_null($words)) {
+ return "test notice content";
+ }
+
+ $cnt = rand(3, 8);
+
+ $ids = array_rand($words, $cnt);
+
+ foreach ($ids as $id) {
+ $parts[] = $words[$id];
+ }
+
+ $text = implode(' ', $parts);
+
+ if (mb_strlen($text) > 80) {
+ $text = substr($text, 0, 77) . "...";
+ }
+
+ return $text;
+}
+