weighted_random_selection

function weighted_random_selection(loot_entries: list<loot_table_item>, number_of_rewards: integer): list<loot_table_item>