This is my code
// Use rand() to print a random number to the screen
?> </p> <p> <?php // Use your knowledge of strlen(), substr(), and rand() to // print a random character from your name to the screen. $name = "Nathan"; $length=strlen($name); $rand=rand(0,$length -1); $sub=substr($name,$rand,1); print $sub; ?> </p>
it keeps telling me that my rand() should return an integer. What am I doing wrong?