Say I wanted to have an attack that has a 90% chance of doing 10k damage and a 10% chance of doing 100k damage using the .sample in the formula.
Would the following: [10000,10000,10000,1000,10000,10000,10000,10000,10000,100000].sample
where there are nine 10,000 and one 100,000 achieve what I want to accomplish?
If there is a more efficient way, even if this would work, feel free to let me know.
Thanks.
Would the following: [10000,10000,10000,1000,10000,10000,10000,10000,10000,100000].sample
where there are nine 10,000 and one 100,000 achieve what I want to accomplish?
If there is a more efficient way, even if this would work, feel free to let me know.
Thanks.