<?php
$vowels = array('a','e','i','o','u');
$other = array('b','c','d','f','g','h','j','k','l','m', 'p', 'q', 'r', 's', 't', 'v', 'w', 'x', 'y', 'z');
$prev = null;
for ($x=0,$s=null,$s=null;$x<4;$x++) {
if (in_array($prev, $other)) {
$s .= $vowels[array_rand($vowels)];
} else {
$s .= $other[array_rand($other)];
}
$prev = $s;
}
echo $s;
preferences:
32.13 ms | 402 KiB | 5 Q