Returns a random number within the total weight of a weighted table.
Weighted table containing numeric weights
Random weighted value between 0 and the total weight