Click to See Complete Forum and Search --> : Giving rand another value


MacMyDay
10-04-2003, 10:35 AM
How can I have rand() having more than one value for the same page? I want to insert a random digit into my database 5 times over, yet using rand() just inserts the same random digits in over and over. I could just do crypt($differentstring); each time, yet that's not the coding spriti! I'd need to make it the same length too.

PunkSktBrdr01
10-04-2003, 03:07 PM
Why not just use rand() five times? Or, if you need more "randomosity", try mt_rand(). It is the same as rand(), but more random.