Hello all,
What is the most efficient way to choose between a few options in a way that is weighted? For example, I want to pick between the numbers 2, 3 and 4. However, I want there to be a 20% chance of picking 2, 60% chance of picking 3, and 20% chance of picking 4. I've thought of a few different ways of doing this:
1. Use "Send Random Event" to pick one of these three options, fire it off to one of three States which sets the variable value. This seems inefficient because it requires so many states.
2. Use Arraymaker to create an array that looks something like this: 2, 2, 3, 3, 3, 3, 3, 3, 4, 4. Randomly choose a value out of it.
Is there anything else that might accomplish this elegantly?
Thank you,
Jenna