Re: Generating Numbers from Strings
| From: | John Ryan | Date: | Sat, 01 Nov 2003 02:14:26 +0000 |
| Subject: | Re: Generating Numbers from Strings | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-168243@lists.php.net to get a copy of this message | ||
I've done that, but how do I generate a number out of that that's in a
certain range?
"Thomas Seifert" <thomas-lists@myphorum.com> wrote in message
news:20031101014027.6e2ca9f2.thomas-lists@myphorum.com...
> On Sat, 1 Nov 2003 00:37:32 -0000 celticfc@iol.ie (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???
> >
> > TIA
>
> md5(__FILE__) ?
>
>
> Thomas