Example I have this array ['a', 10, 'b', 1]
I need to get result 'a' 10x more time than result 'b', randomly.
What's the most efficient way to do this in solidity?
An then picking a random index using Math.random()
Should I use the same approach? Would that cost too much gas?
It is expected that there could be up to 1000+ items in the array if I use this method.
Note that I wouldn't need secure randomness, just pseudo randomness would be fine.