text to random number
<p>How can I get random number from text?</p>

<pre><code>function text_to_number($text, $min, $max)
{
    ....
    mt_rand($min, $max);
    ....
    return $random_number;
}

$rand1 = text_to_number("text1", 1, 1000);
$rand2 = text_to_number("text2", 1, 1000);
</code></pre>

<p>So that "text1" always return 476 (for example) in <code>mt_rand(1, 1000)</code>, and "text2" - always 241.<br>
Is it possible?</p>
