Random With Odds
| From: | Nick Catalano | Date: | Mon, 03 Jul 2000 22:53:35 +0000 |
| Subject: | Random With Odds | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-4591@lists.php.net to get a copy of this message | ||
I am about to create a BIG script that will allow a banner to rotate.. I
want to allow the user to select a weight for each banner.. 1 showing up
1.5x as much as 2, 2 showing up 1.5x more than 3, 3 showing up 1.5x more
than 4, etc... how would I do that?? is there a way to setup rand to take in
account the odds of picking one number, and is it possible to change those
odds??