- rand: documentation ( source)
<?php
// Use your knowledge of strlen(), substr(), and rand() to
// print a random character from your name to the screen.
$name = "Griseldita";
$nameUno = $name [0];
$nameUltimo = $name [strlen ($name) - 1];
print rand ($nameUno, $nameUltimo);
?>