Skip to content

Instantly share code, notes, and snippets.

@danielmitd
Last active September 8, 2015 08:13
Show Gist options
  • Select an option

  • Save danielmitd/19afccbd0997c92ed63d to your computer and use it in GitHub Desktop.

Select an option

Save danielmitd/19afccbd0997c92ed63d to your computer and use it in GitHub Desktop.
#!/usr/bin/env php
<?php
$people = [
'b2b' => [
'Dominik',
'Thomas',
'Henrik',
],
'b2c' => [
'Michel',
'Chrigi',
'GCC',
'Pascal',
],
];
foreach ($people as $team => $members) {
echo $team . PHP_EOL . str_repeat('=', strlen($team)) . PHP_EOL;
shuffle($members);
$i = 0;
foreach ($members as $name) {
echo ++$i . '. ' . $name . PHP_EOL;
}
echo PHP_EOL;
}
@haeber
Copy link

haeber commented Sep 8, 2015

B2B-Mitglieder werden immer als erstes ausgegeben. Ist also nicht allzu zufällig.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment