Radical Roulette

4 years ago

jackmcdade

You have a 1 in 6 chance of being stuck with a boring, corporate color forever.

Code

$roulette = [
  'Hot Pink',
  'Tantilating Teal',
  'Electric Yellow',
  'Ridiculous Red',
  'Screaming Purple',
  'Corporate Whatever Blue'
];
  
return $roulette[array_rand($roulette)];

Output

=> "Corporate Whatever Blue"
Video course: PHP Package Development