This class can be used to pick a random item from a collection.
It can add to a collection of items that can be values of any type: strings, numbers, objects, etc.. Each item may have a probability weight.
The class can pick one or more random items from the collection. When picking multiple items it may allow repetition of the same item or assure that all the picked items are unique.
It can also pick random items considering their probability weight, so those with greater weight are more likely to be picked.
|
|
| Name: |
Random Lib |
| Base name: |
randomlib |
| Description: |
Pick a random items with probability weights |
| Version: |
1.4 |
| PHP version: |
4 |
| License: |
GNU General Public License (GPL) |
| All time users: |
642 users |
| All time rank: |
4255 |
| Week users: |
0 users |
| Week rank: |
2042  |
| |
|
| There are not enough user ratings to display for this class. |
| Link |
Description |
| RandomLib - A class for randomness |
This is the first time I make a class . I start to make this class because I found my random functions are hard to manage... |
| |
Applications that use this class |
|
|
No application links were specified for this class.

If you know an application of this package, send a message to the
author to add a link here.
| |
Files |
|
|