Login   Register  
PHP Classes
elePHPant
Icontem

Advanced Randomizer: Retrieve random items based on given probability

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (6)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2004-10-31 (9 years ago) RSS 2.0 feedStarStarStarStar 67%Total: 1,922 This week: 5All time: 1,915 This week: 339Up
Version License Categories  
adv-randomizer 1.0.0GNU General Public Lice...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: 30
All time rank: 58544 in Brazil Brazil
Week rank: 306 Up23 in Brazil Brazil Up

  Files folder image Files  
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

 Version Control Unique User Downloads Download Rankings  
 0%Total:1,922All time:1,915
 This week:5This week:339Up
User Ratings User Comments (1)  
 All time
Utility:70%StarStarStarStar
Consistency:70%StarStarStarStar
Documentation:91%StarStarStarStarStar
Examples:91%StarStarStarStarStar
Tests:66%StarStarStarStar
Videos:-
Overall:67%StarStarStarStar
Rank:350
 
works as expected.
4 years ago (Rick McElderry)
72%StarStarStarStar