-// Here we split it into lines
-$lyrics = explode("\n", $lyrics);
-// And then randomly choose a line
-$chosen = wptexturize( $lyrics[ mt_rand(0, count($lyrics) ) ] );
+ // Here we split it into lines
+ $lyrics = explode("\n", $lyrics);
+
+ // And then randomly choose a line
+ return wptexturize( $lyrics[ mt_rand(0, count($lyrics) - 1) ] );
+}