array_rand() might be the solution for you.
Niklas
-Original Message-
From: andy [mailto:[EMAIL PROTECTED]]
Sent: 7. toukokuuta 2002 16:12
To: [EMAIL PROTECTED]
Subject: [PHP] how to generate a date between 1998 and today by random?
hi there,
I am wondering if there is an easy way
haven't tried that:
use mktime to get unixtimestamps of today and of the date between 1998.
create a random number between these timestamps (the random function should
be capable of it, or just code yourself a little function).
convert the resulting timestamp to a date using the todate()
2 matches
Mail list logo