I\'m trying to select a random color of the product but I need the randomness to be weighted towards high stock products. So if the stock is high, I want that product to be