PHP Classes
Icontem

Class: Random Lib


  Search   All class groups All class groups   Latest entries Latest entries   Top 10 charts Top 10 charts   Newsletter Newsletter   Blog Blog   Forums Forums   Help FAQ Help FAQ  
  Login   Register  
Recommend this page to a friend! ReTweet ReTweet Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Chao Xu  >  Random Lib  >  Download  >  Support forum Support forum (1)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Random Lib Support forum
Base name: randomlib
Description: Pick a random items with probability weights
Version: 1.4
Required PHP version: 4
License: GNU General Public License (GPL)
All time users: 492 users
All time rank: 3747
Week users: 2 users
Week rank: 2741
 
  Author   Group folder image Groups   Detailed description  
  Rate classes User ratings   Trackback   Applications   Files Files  

Author

Picture of Chao Xu
Name: Chao Xu <e-mail contact>
Published packages: 1 Browse this author's classes Browse this author's classes
Country: United States United States - PHP jobs in United States
Home page: http://mgccl.com/
Age: ???
All time rank: 2083
Week rank: 1948

Groups

Group folder image Algorithms Numerical and statistical algorithms View top rated classes

Detailed description

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.

User ratings

There are not enough user ratings to display for this class.

Trackback links

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.
Add link image If you know an application of this package, send a message to the author to add a link here.

Files

File Role Description
Accessible without login Plain text file class.random.php Class The randomlib class
Plain text file example.php Example Show a example of how it works
Download all files: randomlib.tar.gz randomlib.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.

 
  Advertise on this site Advertise on this site   Site map Site map   Statistics Statistics   Site tips Site tips   Privacy policy Privacy policy   Contact Contact  

For more information send a message to :
info at phpclasses dot org.
Copyright (c) Icontem 1999-2010 PHP Classes - PHP Class Scripts
  PHP Book Reviews - Reviews of books and other products