Rand() function cause error when I replace static value with random value
<p>What am I doing wrong</p>

<p>I have this script, and added the <code>$randnumber = rand(100, 500);</code> function to it, this should generate a random number for me between 100 and 500.</p>

<pre><code>   $randnumber = rand(100, 500);
    function word_limiter( $text, $limit = $randnumber, $chars = '0123456789' )
</code></pre>

<p>The problem is that it gives me a error: </p>

<blockquote>
  <p>Parse error: syntax error, unexpected
  T_VARIABLE</p>
</blockquote>

<p>While if I use the function as:</p>

<pre><code>function word_limiter( $text, $limit = '200', $chars = '0123456789' )
</code></pre>

<p>it works 100%, I have tried it like this:</p>

<pre><code>function word_limiter( $text, $limit = ''.$randnumber.'', $chars = '0123456789' )
</code></pre>

<p>but still get an error?</p>
