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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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 17:00:01 2026 UTC