Well as we'll see later in the term, we're going to use a lot of randomness in a lot of our programs. Where we essentially do the equivalent of flipping coins or rolling dice.
我们会在晚些时候学到,我们会在很多程序中,用到一系列的随机检验,这跟掷骰子或者扔硬币差不多。
This is what we do in the South of France with a little chardonnay on the side.
我们在法国南部玩掷球游戏的时候,手边都会放一杯夏敦埃酒
We'll assume that if there's a tie that we flip a fair coin or a Supreme Court judge, whatever you want to take, whichever.
我们将假设如果有人票数一致,我们就掷硬币或由最高法院裁决,不论你们想用那种方法
One is to say, how much will you bet and then I toss the coin.
第一种,你先押注,然后我再掷硬币
The other way is, I toss the coin first and I can conceal the outcome and then I ask, how much would you like to bet?
第二种,我先掷出硬币,然后盖住,问你,你愿意下多少赌注
It could have been already tossed and concealed.
但也许硬币已经被掷出且藏了起来
So, the monopoly on dice he sells.
彼得大帝不仅垄断了掷骰赌博
Flip if tie.
如果平局就掷硬币
He says, "to succeed in many things or many times is 'difficult.' For instance, to repeat the same throw of dice 10,000 times would be impossible; whereas, to make it once or twice is comparatively easy."
他说,要成就很多事情,或成就一件事情很多次,是很困难的,比如,掷一万次骰子都得到同样的结果,是不可能的,但是,掷一两次却是相对容易的
For example, if you ask people how much they would be willing to bet on a coin toss, they will typically bet more if they can toss the coin or they will bet more if the coin hasn't been tossed yet.
比如说,如果你问人们,他们愿意出多少钱去赌掷硬币,如果他们可以掷硬币,或在硬币还没被掷出前,他们会下更大的注
There we go--boules.
我们继续,掷球
应用推荐