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

2001-01-26 Thread April
;April" <[EMAIL PROTECTED]> To: "Robert Collins" <[EMAIL PROTECTED]>; "PHP General" <[EMAIL PROTECTED]> Sent: Friday, January 26, 2001 3:15 PM Subject: Re: [PHP] rand(), mt_rand(), and my inability to make either of them random. > Thanks. It doesn

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

2001-01-26 Thread April
CTED]> To: "'April'" <[EMAIL PROTECTED]>; "PHP General" <[EMAIL PROTECTED]> Sent: Friday, January 26, 2001 2:58 PM Subject: RE: [PHP] rand(), mt_rand(), and my inability to make either of them random. > this is a function that I wrote to solve this

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

2001-01-26 Thread Robert Collins
quot;; $highnum = "100"; random_number("config.inc.php", $lownum, $highnum); } ?> -Original Message- From: April [mailto:[EMAIL PROTECTED]] Sent: Friday, January 26, 2001 1:50 PM To: PHP General Subject: [PHP] rand(), mt_rand(), and my inability to make either o

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

2001-01-26 Thread April
I have this scriptlet: $items = 6; $randnum = rand(1,$items); echo $randnum . ""; Always, no matter how many times I hit refresh, it'll always return the lowest possible value, in this case 1. If I have rand(4,$items), it returns four. So I tried mt_rand(), with this: $items = 6; $randnum = m