Sets a property of looted to some random choice from choices list
Choices can be a simple array, or a map of anything => weight.
Example
setToRandomChoice({rng, looted, { property: 'item.color', choices: ['red', 'green', 'blue'] }}); // looted.item.color will be one of red, green or blue.
Sets a property of looted to some random choice from choices list
Choices can be a simple array, or a map of anything => weight.
Example