[thelist] srand in php

Jay Greenspan jay at trans-city.com
Tue Oct 23 18:50:24 CDT 2001

On Tuesday, October 23, 2001, at 06:29 PM, Andrew Forsberg wrote:

> Please put me out of my misery and let me know how you (or other 
> evolters) would do it. Would this be ok? Or is it a bit too round-about?

Well, here's my hack:

$key = mt_rand(100000000,999999999);
$new_key = (float) $key . mt_rand(0,9);


More information about the thelist mailing list