PHP Classes

Advanced Randomizer: Retrieve random items based on given probability

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 75%Total: 2,086 All time: 1,878 This week: 47Up
Version License Categories
adv-randomizer 1.0.0GNU General Publi...Algorithms
Description 

Author

This class is able to retrieve items added to a list based on the probability of occurrence associated to each item.

It is useful for making sorting content to be served randomly, such as a advertising banner system on which different advertisements have distint levels of priority, but all of them must be displayed.

Picture of Jonas Raoni Soares Silva
Name: Jonas Raoni Soares Silva <contact>
Classes: 3 packages by
Country: Brazil Brazil
Age: 40
All time rank: 61744 in Brazil Brazil
Week rank: 197 Up16 in Brazil Brazil Up

  Files folder image Files (6)  
File Role Description
Accessible without login Plain text file doc.txt Doc. Fast step-by-step help
Accessible without login Plain text file example.php Example Simple to understand and small
Accessible without login HTML file javascript-example.htm Data JavaScript class implementation example
Plain text file lib.probabilityRandom.php Class main package class
Accessible without login Plain text file sample.txt Output Simple output sample
Accessible without login Plain text file test-suite.php Test Test to show up the algorithm precision

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:2,086
This week:0
All time:1,878
This week:47Up
User Ratings User Comments (1)
 All time
Utility:84%StarStarStarStarStar
Consistency:81%StarStarStarStarStar
Documentation:88%StarStarStarStarStar
Examples:90%StarStarStarStarStar
Tests:77%StarStarStarStar
Videos:-
Overall:75%StarStarStarStar
Rank:66
 
works as expected.
14 years ago (Rick McElderry)
72%StarStarStarStar