Re: Re: Generating Numbers from Strings
| From: | Filip de Waard | Date: | Sat, 01 Nov 2003 03:16:26 +0000 |
| Subject: | Re: Re: Generating Numbers from Strings | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-168246@lists.php.net to get a copy of this message | ||
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