i would like to write an algorythm which will calculate percentage chance for drawing one item from a group of items depending on the price of these items (the higher price