Author Topic: Odds using a dispenser  (Read 1679 times)

0 Members and 1 Guest are viewing this topic.

Offline CervezaTopic starter

  • Hacksimus Maximus
  • Scripthack
  • *
  • Posts: 5857
  • Activity:
    0%
  • Reputation Power: 80
  • Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!
  • Gender: Male
  • So... Hows that Hopey-Changey thing working out?
  • Respect: +403
  • Referrals: 11
    • View Profile
Odds using a dispenser
« on: September 17, 2012, 08:19:49 AM »
+1
My son wants to setup a random gambling device in Minecraft. I've built him the basic operational device, but now we're trying to determine some odds for betting.

The devices are called Dispensers. They have 9 slots that can be loaded with items. We will be using red, white and blue wool.

The dispensers, when triggered, toss out one random item. *If* we put 3 stacks of red, 3 stacks of white and 3 stacks of blue into a dispenser the odds of a color coming out is 3 in 9 or 1/3 of the time. Now if I remember correctly, if we were to load two dispensers with 3-red, 3-white and 3-blue, then the odds of getting both dispensers to output the same color would be 1 in 9, because each colors chance is 1/3 in each dispenser so getting the same color from two dispensers would be 1/9?

So my question is what are the odds of getting 3 of a kind, and also a Red, White, Blue (in order) using three dispensers for these cases.

#1
A = 3 Red, 3 White, 3 Blue (red = 3/9, white = 3/9, blue = 3/9)
B = 3 Red, 3 White, 3 Blue (red = 3/9, white = 3/9, blue = 3/9)
C = 3 Red, 3 White, 3 Blue (red = 3/9, white = 3/9, blue = 3/9)

All 3 same = (I'm thinking 1 in 27?)
Red/White/Blue = (Same thinking? 1 in 27?)

#2
A = 3 Red, 3 White, 3 Blue
B = 3 Red, 3 White, 3 Blue
C = 4 Red, 3 White, 2 Blue

All 3 same =
Red/White/Blue =

#3
A = 3 Red, 3 White, 3 Blue
B = 4 Red, 3 White, 2 Blue
C = 4 Red, 4 White, 1 Blue

All 3 same =
Red/White/Blue =

After seeing a few examples I should be able to mix things up to give the win percentages I want.

*Jeez, just thought about putting one GOLD in as a wild.... man this could get complicated. One gold in each dispenser or one gold in one dispenser only.

Math probably sux.
« Last Edit: September 17, 2012, 08:21:20 AM by Cerveza »
XXXXXXXXXX________________________________________] 20%
I've forgotten more about this game then most people will ever know.
Thank you for controlling your children. Their manners reflect your love for them.
Give a man a fish and you feed him for a day. Don't teach a man to fish, and you feed yourself. He's a grown man. Fishing's not that hard.

Tags: