The net's largest PHP, CGI, Perl, JavaScript and ASP script collection and resource web portal
  New Listings
New Listings
Most Popular
Most Popular
Top Rated
Top Rated
Discussion
Discussion
Link to Us!
Link To Us
Search For:         
   
 
Categories

Ajax
ASP
ASP.NET
C and C++
CFML
CGI and Perl
Flash
Java
JavaScript
PHP
Python
Remotely Hosted
Ruby on Rails
Tools and Utilities
Web Hosting
XML

Sponsor Links



Home :: CFML :: Scripts and Programs :: Miscellaneous Notes 

Weighted Random Hits: 592


Description:
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.


 Resource Specification
Platform(s): linux, windows
Date Added: Feb 26, 2007
Last Updated: Feb 28, 2007
Author: Sean Sekora


 Share


 License Information
License # 1:
  License Type: Freeware Price: Free


Average Visitor Rating:     5.00 (out of 5)
Number of Ratings: 1 Votes

  Visitor ratings breakdown by period
  Last 7 Days 0 0 0 0 0 0.00
  Last Month 0 0 0 0 0 0.00
  Last Year 0 0 0 0 0 0.00
  Overall 0 0 0 0 1 5.00
  1 2 3 4 5 AVG
  Visitor Rating Totals
1 2 3 4 5


  Visitor Voting Booth

Average Member Rating: Not yet reviewed by any member....

You can be the FIRST one to write a review for Weighted Random.

 Other Links by This Member  Contact author






 

Register | FAQ/Support | Contact Us | About Us | Getting Rated | Link to Us | Bookmark Us | Advertising Info | Terms of Use | Privacy Policy
Copyright © 2009 iNET Interactive. All rights reserved.
Other iNET Interactive Sites:
Web Hosting Talk | dBForums | Mac Forums | Hosting Catalog