Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # ------- подкрутка -------
- array_of_type = case most_weight
- when 'red' then @red
- when 'black' then @black
- when 'even' then @even
- when 'odd' then @odd
- else nil
- end
- included = !array_of_type.nil? && array_of_type.include?(@number)
- randed = rand(5) == 1
- puts "Подкручиваем: #{randed ? 'успех!' : 'провал...'}" if !bets.empty? && included
- @number = rand 37 if included && randed
- # --------------------------
- # (1-0.5*(1-0.5*(1/5))))+0.027 = 57.7% подкручено в целом (если rand 5)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement