Weighted Selection

Hi.

I’ve generated minerals on this asteroid (a struct)… What would I like to do is randomly pick 3 of those based on a weight. So, nickel is like 75% chance of being found, but platinum is like 2%. Anyone have any suggestions on how to approach this?

teak