<?php

namespace Drupal\Console\Test\DataProvider;

/**
 * Class ThemeDataProviderTrait
 * @package Drupal\Console\Test\DataProvider
 */
trait ThemeDataProviderTrait
{
    /**
     * @return array
     */
    public function commandData()
    {
        $this->setUpTemporalDirectory();

        return [
          ['Foo', 'foo', $this->dir.'themes/custom', 'bar', 'Other', '8.x', 'sd', 'global-styling', false, false]
        ];
    }
}

<?php

namespace Drupal\Console\Test\DataProvider;

/**
 * Class ThemeDataProviderTrait
 * @package Drupal\Console\Test\DataProvider
 */
trait ThemeDataProviderTrait
{
    /**
     * @return array
     */
    public function commandData()
    {
        $this->setUpTemporalDirectory();

        return [
          ['Foo', rand(), $this->dir.'/themes/custom', 'bar', 'Other', '8.x', 'sd', 'global-styling', false, false]
        ];
    }
}

Use rand for theme machine name
Use rand for theme machine name
