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  

Average Visitor Rating: 0.00 (out of 5)
Number of ratings: 0 Votes

Visitor Rating

Sean Sekora: Weighted Random
34912 Sean Sekora: Weighted Random http://www.seansekora.com/index.cfm/2007/2/22/Weighted-Random 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.
CFML > Scripts and Programs > Miscellaneous Coldfusion   consultant   consulting   weighted   random Mar 1, 2007 Sean Sekora send email to Sean Sekora

Write a Review   Add to My Favorite   Refer it to Friend   Report Broken Link  

Bookmark Sean Sekora: Weighted Random:


Other links owned by this user
RSS parser is a fast and adaptable CFC that parses XML. Originally it was designed to read RSS feeds of blogs and was later adapted to be able read various RSS feeds. Currently it is limit to RSS 2.0 format, but I am working on adapting it to handle Atom feeds.

The RSS parser was design to allow programmers to pass in a list of item child nodes that they want to search for in the XML, such as title and description. I also built in the ability to group 2 or more child nodes together in an "OR" represented by |, such as pubdate|datepub. This would search for pubdate first and if this isn't found it would search for datepub and continue if there where additional child nodes until it found one. It would then use the first child node in the list as the structure key and save what ever value is found to it.

I also created a cfc that works with the RSS parser to handle a gallery feed from SmugMug.com. Among other things the smugmug cfc gets information, such as imageID from the image link, and uses this the create links to the various image sizes that are not directly included in the XML.
Category:

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:

Other links at CFML > Scripts and Programs > Miscellaneous
CF_YAHOO_RSS retrieves news from Yahoo's RSS (Really Simple Syndication) for news segments that include: Top Stories,World, Business, Technology, Politics, Sports, Entertainment, Health, Oddly Enough, Science, Editorials, Most Emailed, Highest Rated, Most Viewed.
Category:

We compete against many other companies to deliver the most efficient internet solutions to you with the lowest prices. We can compete because we strive for recognition and a good reputation online.
Category:

CFX_GeoIP will let you to determine the Internet visitor's country based on the IP address. It offers an accuracy rate of 95%. You can use it for :

1. Display native language and currency
2. Redirect web pages based on geographical region
3. Digital Rights Management
4. Prevent password sharing and abuse of service
5. Reduce credit card fraud
6. Web log statistics and analysis
7. Auto-selection of country on forms
8. Filter access from countries you do not do business with
9. Geo targeting for increased sales and click-through

Updated IP/Countries file will be provided regularly for free.


This CFX tags does not require a Database
Category:

This page demonstrates the custom tag dailyreading. Daily Reading is a custom tag that produces links to Old Testament and New Testament readings of the day that will take the reader through the Old Testament once in a year and New Testament twice. The links are to The Blue Letter Bible
Category:

This script allows to take vin number and decode it to find the make, model , year and more from database query , Perfect for car dealer websites where vehicles are posted , cf ajax enabled .database is included "TWICE THE VALUE OF THE AMOUNT OF THIS SCRIPT :)" as a seperate download because it is up to date for 2007 at over 200megs , thus is downloadable via ftp upon script purchase.
Category:




Main Category
194
2041
824
286
175
1802
1238
913
1163
7489
70
909
59
2222
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: 19538
Categories: 1275
Registered Users: 750
Mailing List Subscribers: 2046
Unique Outgoing Hits: 227892

Pagerank Statistics
PR 10
1 site(s)
PR 9
12 site(s)
PR 8
33 site(s)
PR 7
252 site(s)
PR 6
769 site(s)
PR 5
1891 site(s)

PHP News