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.
我们会在晚些时候学到,我们会在很多程序中,用到一系列的随机检验,这跟掷骰子或者扔硬币差不多。
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.
但也许硬币已经被掷出且藏了起来
Flip if tie.
如果平局就掷硬币
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.
比如说,如果你问人们,他们愿意出多少钱去赌掷硬币,如果他们可以掷硬币,或在硬币还没被掷出前,他们会下更大的注
应用推荐