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.

 
Visit Site:
Weighted Random
Version:
1.0 
Filed in:
CFML / Scripts & Programs / Miscellaneous
Platforms:
LinuxMicrosoft Windows 
Databases:
No Database 
Date Added:
Feb 26, 2007 
Last Updated:
Feb 28, 2007 

License and Pricing Information

Freeware

Price: $0.00 USD

Publisher site visits: 624
Average rating: 0.00
Total ratings: 0

Be the first to review this listing!

Publisher Info

Share this Listing