RE: [PHP] rand(), mt_rand(), and my inability to make either of them random.

2001-01-26 Thread Robert Collins
this is a function that I wrote to solve this problem, but it is almost impossible to get a truly random number you can get somthing pretty close by seeding with somthing like the time function, using the seconds since epoch and this should be hard to duplicate. ?php function

Re: [PHP] rand(), mt_rand(), and my inability to make either of them random.

2001-01-26 Thread April
Thanks. It doesn't need to be completely random, just, more random than "1". The occasional 3 would be enough for me. And,t hank you very very much. You forgot the quotes around the U, btw. *huggss* - Original Message - From: "Robert Collins" [EMAIL PROTECTED] To: "'April'" [EMAIL

Re: [PHP] rand(), mt_rand(), and my inability to make either of them random.

2001-01-26 Thread April
lol, nm, you weren't. Why does it return Warning: Use of undefined constant U - assumed 'U' in c:\apache\htdocs\temp\random.php on line 4 if I don't use quotes, though? ayway, I'm going to give up on this. Thanks, though. - Original Message - From: "April" [EMAIL PROTECTED] To: