On Sat, 2003-11-01 at 01:37, John Ryan wrote: 
> I've a bit of a problem, I want a random keyword pulled from my database.
> But I dont want it random all the time. I just want it random to each page.
> So I have the filename variable of the page. How do I somehow generate a
> 'constant' random number from this string that is constant to each file???

Could you refrase your question? I understand a part of what you are
trying to do, but i'm missing the whole picture.

On Sat, 2003-11-01 at 03:14, John Ryan wrote:
> I've done that, but how do I generate a number out of that that's in a
> certain range?

mt_rand($start, $end); generates a 'random' number between two given
numbers.

Filip de Waard

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to