php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #3085 rand doesn't seem to use the min, max parameteres. worked fine in 3.0.12
Submitted: 2000-01-03 08:03 UTC Modified: 2000-07-26 12:40 UTC
From: andreas dot linde at os2 dot org Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 3.0.13 OS: OS/2
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: andreas dot linde at os2 dot org
New email:
PHP Version: OS:

 

 [2000-01-03 08:03 UTC] andreas dot linde at os2 dot org
srand((double)microtime()*1000000);
$randval=rand(1,21);

21 is in my script a variable, with the mysql_num_rows value of a sql select.

used php module taken from http://silk.apana.org.au/apache/

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-07-26 12:40 UTC] hholzgra@php.net
fixed, see #2887
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sat Oct 10 16:00:02 2026 UTC