probability/rarity.rb
#sets variables for release run quantity relative to tranche rarity
sets variables for release run quantity relative to tranche rarity
sets variables for release run quantity relative to tranche rarity
def prob_input
  @rarity_set = (5 / @grey_total.to_r * @user_grey) / (5 / @yellow_total.to_r * @user_yellow) / (5 / @blue_total.to_r * @user_blue) / (5 / @red_total.to_r * @user_red) / (5 / @green_total.to_r * @user_green)
  @rarity_run = @rarity_set * 1/35.to_r
  prng = Random.new
  @rarity_rand = @rarity_run * prng.rand(33)
user_input_unit
  end
def prob_input @rarity_set = ( 5 / @grey_total . to_r * @user_grey ) / ( 5 / @yellow_total . to_r * @user_yellow ) / ( 5 / @blue_total . to_r * @user_blue ) / ( 5 / @red_total . to_r * @user_red ) / ( 5 / @green_total . to_r * @user_green ) @rarity_run = @rarity_set * 1 / 35 . to_r prng = Random . new @rarity_rand = @rarity_run * prng . rand ( 33 ) user_input_unit end
sets variables for release run quantity relative to tranche rarity
sets variables for release run quantity relative to tranche rarity