How to generate content to Drupal 7 with a PHP-script? I have been given the task to generate a couple of thousand of pages in drupal that should contain text generated by a php-script. After that is done, I'm supposed to perform searches on the generated words and play with the settings in Drupal to make the searching as fast as possible.

I have the php-script that generates the text but what I am asking for is the php-script that generates the pages and for each one calls my php-script to put a mass of generated text on the page.

I know that there is a file in Drupal that I can use since I read this page https://api.drupal.org/api/drupal/scripts!generate-d7-content.sh/7, but that one generates text that I can't perform my searches on. I think I need to modify it to call for my own text generator but I'm not sure of how?

Is there someone out there that maybe could help me? It would be most appreciated!
You can use contrib module for that purpose

Devel


  Generate content
  
  Accelerate development of your site or module by quickly generating
  nodes, comments, terms, users, and more.


Dummy content


  DC allow your custom module to provide demo nodes as soon as the
  module is installed - this helps with populating blocks, views, and
  generally showcasing your module's functionality. This is very useful
  when showcasing a module's functionality to a client. For example,
  rather than installing the Forum module and having to manually create
  forum nodes, the DC API can be used to pre-populate the site with
  forum-type nodes as soon as the Forum module is enabled. Additionally,
  rather than having purely Lorem Ipsum-type content, you can define
  relevant pieces of text and images, giving the content a more complete
  &amp; realistic look &amp; feel.


Note:  Both modules will create random content.