h1 = 'Random Page'; // array_unshift($this->title, $this->h1); $type = array_rand(Type::getClassesFor(Type::FLAG_RANDOM_SEARCHABLE)); $typeId = (Type::newList($type))?->getRandomId(); $this->redirectTo = '?'.Type::getFileString($type).'='.$typeId; // $this->extraHTML = <<// // JS; } } ?>