NEW LISTINGS  HOT LISTINGS  TOP RATED  EDITOR PICK  ADD A LISTING  UPDATE A LISTING  GET RATED  UPGRADE A LISTING
  HOME     MY ACCOUNT     POWER SEARCH     REGISTER     MEMBER LIST     SUGGEST CATEGORY  

Web Links [Tag : random]
Sort By :
Weighted random is a CFC that I created to use for the CFSudoku project. The main function of this CFC is to allow a developer to pass in an structure of values and their "weight".

The weight structure is then used to build a weight array. The length of the array is equal to the sum of weights and the corresponding value is stored in each array element. RandRange() is then used to get a random array key and the corresponding value is returned as the weighted random value.
Category:

Write a Review   Add Favorite   Refer it to Friend   Report Broken Link  
Date Added: Mar 1, 2007 Hits: 2 Rating: 0.00 Votes: 0

Member Reviews Visitor Ratings Google PR


Main Category
185
2034
801
286
174
1803
1129
909
1161
7393
70
905
59
2200
174

Join Mailing List
Joining mailing list will entitle you to receive occasional emails informing you of news and updates to the site and any special offers that may be of interest to you.



Top 10
Directory Statistics

Links: 19263
Categories: 1275
Registered Users: 734
Mailing List Subscribers: 2043
Unique Outgoing Hits: 228297

Pagerank Statistics
PR 10
2 site(s)
PR 9
9 site(s)
PR 8
37 site(s)
PR 7
291 site(s)
PR 6
825 site(s)
PR 5
2015 site(s)

PHP News