I'm writing a simple computer program that has to use the following weighted table
to pick a random "payment" where the relative probabilities are given by "weight".
How does one interpret the table above and use it to determine how much to "pay"?
EDIT: After speaking with some folks it seems this table is simple enough that I can just create a table with 41 entries where each pay amount appears ( Weight times ) and select a random number between 0 and 40 and use that to index into the table.