note 28333 added to function.rand
| From: | admin at rack1 dot php dot net | Date: | Thu, 09 Jan 2003 15:26:45 +0000 |
| Subject: | note 28333 added to function.rand | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-41917@lists.php.net to get a copy of this message | ||
hello,
i'm trying to get random numbers between 1 and 10, but 10 should come only in 1% of occassions
while 1 should come in 90% (or so). the higher the number, the lesser the occasion.
any hints on that?
thanks - u.
--
http://www.php.net/manual/en/function.rand.php
http://master.php.net/manage/user-notes.php?action=edit+28333
http://master.php.net/manage/user-notes.php?action=delete+28333
http://master.php.net/manage/user-notes.php?action=reject+28333