Is there a way to generate dummy content for custom entities? Since the Devel module allows to generate content only for core entities:


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


Is there a module or a proper way to generate fake content for custom entities?

I mention that I found Devel contrib module that includes the Devel Contrib Generate module, which allows generating of dummy entities of any entity type, but I've not been able to figure out how to use it with D8.
To create some demo entities programmatically, you can use a while loop in your function.  To create 100 entities:

$i = 1;
while ($i &lt;= 100) {
  $i++;

  // Create an entity here.  See https://www.drupal.org/docs/8/api/entity-api/working-with-the-entity-api#s-create
  // To create random strings (e.g. for fake titles), refer to the comments at https://www.php.net/manual/en/function.rand.php -- In here you will find different ways to create random strings.
  // Generate some Lorem Ipsum text if you like: https://stackoverflow.com/a/20633400/861826

}