Username
Password
Home | Log-in | Register | Advertise | About Us | Getting Rated | Feedback

Sponsor Links



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.


More Details
Platform(s): linux, windows
Last Modified May 28, 2007
Added May 28, 2007
Author Sean Sekora
License Type: Freeware
Price: Free

Average Visitor Rating:
Visitor Rating Totals
Rated 1
Rated 2
Rated 3
Rated 4
Rated 5
Number of votes

0 (out of 5.00)
   
 
A Cynux Company
© 2003-2005 ScriptsDownload.com, All Rights Reserved.