is there a way to assign weights to indices in an array than use those to influence my choice? I want to write a function to randomly choose indices based on these weights (this way if there are 0 entries, or entries less than other ones the choice will be influenced).