note 38062 added to function.mt-rand

From: Date: Sat, 06 Dec 2003 18:26:30 +0000
Subject: note 38062 added to function.mt-rand
Groups: php.notes 
Request: Send a blank email to php-notes+get-61488@lists.php.net to get a copy of this message
When using this function, it doesn't matter which order the numbers go in. mt_rand(16,5) works just as well as mt_rand(5,16) Which can be useful if you are pulling values from a database, that could be negative or positive. mtrand(0,$anyinteger) Hope this helps someone ---- Manual Page -- http://www.php.net/manual/en/function.mt-rand.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+38062 Delete -- http://master.php.net/manage/user-notes.php?action=delete+38062&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+38062&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#61488) next »