The World Depends on Random Numbers That Aren't Really Random
VeritasiumAt the Lumiere Place Casino in St.セントルイスのルミエール・プレイス・カジノで、
Louis, a man holds his phone up to a slot machine and he records the spins on the screen.ある男がスロットマシンにスマホをかざし、画面のスピンを録画しています。
He played a few rounds.彼は数ラウンドプレイしました。
He won some, lost some, and then he got up and walked away.勝ったり負けたりして、それから立ち上がって立ち去りました。
Five minutes later, he was back playing the same machine, but now he was winning on spin after spin.5分後、彼は同じマシンに戻ってプレイしていましたが、今度はスピンするたびに勝ち続けていました。
After less than an hour of gambling, he walked out of the casino roughly $10,000 richer.1時間も経たないギャンブルの後、彼は約1万ドルも裕福になってカジノを後にしました。
At least ten casinos across Missouri, Illinois, and California saw the same thing.ミズーリ州、イリノイ州、カリフォルニア州の少なくとも10のカジノで同じことが見られました。
Gamblers would play on a slot machine for a while and then leave.ギャンブラーたちはしばらくスロットマシンでプレイしてから立ち去ります。
And minutes later, they would return and start winning.そして数分後に戻ってきて勝ち始めるのです。
Investigators were brought in, but when they examined the slot machines, they all seemed to be working fine.捜査官が呼ばれましたが、スロットマシンを調べても、すべて正常に動作しているように見えました。
So they turned their attention to the security footage and they noticed something strange.そこで彼らは監視カメラの映像に注目し、奇妙なことに気づきました。
When these players came back, they didn't play like normal gamblers.これらのプレイヤーが戻ってきたとき、普通のギャンブラーのようにプレイしなかったのです。
They hover their hand over the spin button, wait.彼らはスピンボタンの上に手をかざして待ち、
And then press at oddly specific moments, as if they knew when to press to win.そして奇妙なほど特定のタイミングで押すのです、まるで勝つためにいつ押すべきか知っているかのように。
And maybe that makes sense.そしてそれも納得できるかもしれません。
Perhaps there's some way to predict what was coming next because the outcomes of those spinning wheels are actually decided by a computer inside the machine.おそらく次に何が来るかを予測する方法があるのでしょう、なぜなら回転するリールの結果は実際にはマシン内部のコンピューターによって決められているからです。
Now, gambling is a terrible idea, but the casino provides an ideal venue for investigating randomness because theoretically,さて、ギャンブルはひどい考えですが、カジノはランダム性を調査するのに理想的な場所を提供します、なぜなら理論的には、
that computer uses a random number for every spin.そのコンピューターは毎回のスピンに乱数を使用しているからです。
So, are those numbers actually random?では、その数字は本当にランダムなのでしょうか?
Well, that seemingly simple question turns out to connect finding diamonds in Minecraft to the development of the first nuclear weaponsさて、その一見単純な質問は、マインクラフトでダイヤモンドを見つけることから最初の核兵器の開発まで、
to the security of the entire digital world.そしてデジタル世界全体のセキュリティにまでつながることが判明するのです。
This is a video about the near impossibility of creating true randomness.これは真のランダムネスを作り出すことがほぼ不可能であることについての動画です。
Back in the 1940s, physicists discovered that chance plays a surprisingly important role in what happens inside a nuclear bomb.1940年代に、物理学者たちは核爆弾の内部で起こることに偶然が驚くほど重要な役割を果たすことを発見しました。
It works something like this.それはこのような仕組みです。
Take a core of uranium two thirty five.ウラン235の核を取り上げます。
When a neutron hits a U two thirty five nucleus, it can cause the nucleus to split, which releases energy and around two or three more neutrons.中性子がウラン235の原子核に当たると、原子核が分裂を引き起こし、エネルギーを放出し、さらに2〜3個の中性子を放出することがあります。
Now, if on average each split triggers more than one more split, you get a runaway chain reaction.さて、平均して1回の分裂がさらに1回以上の分裂を引き起こすと、暴走した連鎖反応が起こります。
But whether that happens depends on the path those neutrons take,しかしそれが起こるかどうかは、その中性子がたどる経路にかかっています、
how far does each one travel before it hits a nucleus, or does it bounce off or get absorbed, or does it cause another to split.それぞれが原子核に当たるまでにどれくらい進むのか、跳ね返されるのか吸収されるのか、あるいはさらに分裂を引き起こすのか。
By 1945, scientists working at Los Alamos had measured the odds of each of these events happening,1945年までに、ロスアラモスで働く科学者たちは、これらの出来事が起こる確率をそれぞれ測定していました、
but those odds changed depending on things like the neutron's speed and what it was passing through.しかしその確率は、中性子の速度や通過する物質などの条件によって変わりました。
And across trillions and trillions of neutrons, there were far too many possibilities to calculate one by one.そして何兆もの何兆もの中性子にわたっては、可能性が多すぎて一つひとつ計算することはできませんでした。
One of the mathematicians working on this problem was Stanislaw Ulam.この問題に取り組んでいた数学者の一人がスタニスワフ・ウラムでした。
But then one morning in January 1946, Ulam woke up and couldn't speak.しかし1946年1月のある朝、ウラムは目覚めると話すことができませんでした。
It was encephalitis, an inflammation of the brain that nearly killed him.それは脳炎、脳の炎症で、彼は死にかけたのです。
Luckily, he survived, but his recovery was slow.幸い彼は生き延びましたが、回復は遅々としていました。
So he spent weeks in a hospital playing a lot of solitaire, and he started to wonder what are the chances of winning a game.そこで彼は病院で何週間もソリティアをたくさんしながら過ごし、ゲームに勝つ確率はどれくらいなのだろうと考え始めたのです。
Now, at first, that might sound like a simple question, but a deck of 52 cards can be shuffled in 52 factorial ways,さて、一見すると単純な質問に聞こえるかもしれませんが、52枚のカードのデッキは52の階乗通りにシャッフルでき、
and that's about eight times ten to the power of 67 different arrangements.それは約8かける10の67乗通りの異なる並べ方です。
And every one of those shuffles is going to play out differently.そしてそのシャッフルの一つひとつが異なる展開になります。
Now, Ulam spent a lot of time trying to work out the answer to his question analytically, and he got nowhere.さて、ウラムはこの質問の答えを解析的に解き明かそうと多くの時間を費やしましたが、何も分かりませんでした。
But then he had a much simpler idea.しかしその後、彼はもっとシンプルなアイデアを思いつきました。
I wondered whether a more practical method might not be to lay it out, say, 100 times, and simply observe and count the number of successful plays.たとえば100回並べてみて、成功したプレイの数を単に観察して数えるという、もっと実用的な方法があるのではないかと思ったのです。
That would give him some sort of statistical approximation of the answer.そうすれば答えの統計的な近似値が得られるでしょう。
So, say you win eight games out of 100.たとえば、100回中8回勝つとします。
Well, then your overall chances of winning are probably around 8%.そうすると、全体の勝率はおそらく8%前後ということになります。
And that's when Ulam realized he could use exactly the same idea, but for neutrons.そしてそのときウラムは、中性子にもまったく同じ考え方が使えると気づいたのです。
So instead of trying to calculate every possible path, he could just start with 100 neutrons and use random numbers to simulate what would happen to each of them.つまり、あらゆる可能な経路を計算しようとする代わりに、100個の中性子から始めて、乱数を使ってそれぞれに何が起こるかをシミュレーションできるのです。
So say a neutron hits an atom.たとえば中性子が原子に当たるとします。
If I roll a one, a two, or a three, it bounces off the nucleus.1か2か3が出たら、中性子は原子核ではね返されます。
If I roll a four or a five, it causes the nucleus to split.4か5が出たら、原子核が分裂します。
And if I roll a six, it gets absorbed.そして6が出たら、吸収されます。
And then I just follow what happens to that neutron and any other neutrons that it produces using more random numbers, and that will decide their fate.そしてその中性子と、それが生み出す他の中性子に何が起こるかを、さらに乱数を使って追跡するだけで、それらの運命が決まります。
Now those are just example odds.さて、これらはあくまで例としての確率です。
In the real simulation.実際のシミュレーションでは。
the scientists used probabilities they had already measured to decide which random numbers corresponded to which outcomes.科学者たちは、どの乱数がどの結果に対応するかを決めるために、すでに測定済みの確率を使いました。
And after each interaction, the neutron's speed or direction could also change.そして各相互作用の後、中性子の速度や方向も変わることがありました。
So for the next step, they'd use the probabilities for its new situation.だから次のステップでは、その新しい状況に対する確率を使うのです。
So use another random number, and then they kept following what happened.つまり別の乱数を使って、そして起こることを追い続けたのです。
And by repeating this process, they could see how all those interactions added up.そしてこの過程を繰り返すことで、それらすべての相互作用がどう積み重なるかを見ることができました。
If the number of neutrons keeps growing, the chain reaction takes off.中性子の数が増え続ければ、連鎖反応が始まります。
But if more are lost than are produced, it fizzles out.しかし失われる数が生み出される数より多ければ、立ち消えになります。
So by simulating just a tiny fraction of the possible paths, Ulam could estimate how an entire nuclear chain reaction would behave.つまり、可能な経路のごく一部だけをシミュレーションすることで、ウラムは核連鎖反応全体がどう振る舞うかを推定できたのです。
But doing all of these calculations by hand seemed impossible.しかし、これらすべての計算を手作業で行うのは不可能に思えました。
Luckily, fellow mathematician and Los Alamos advisor John von Neumann had been working with one of the world's first electronic computers, the ENIAC.幸い、同僚の数学者でロスアラモスの顧問でもあったジョン・フォン・ノイマンは、世界初の電子計算機の一つであるENIACを使っていました。
In March 1947, he worked out how it could follow 100 neutrons and their descendants through thousands of collisions in just five hours.1947年3月、彼は100個の中性子とその子孫を数千回の衝突にわたってわずか5時間で追跡する方法を考案しました。
But the ENIAC couldn't roll a die to decide what would happen to a neutron.しかしENIACは、中性子に何が起こるかを決めるためにサイコロを振ることはできませんでした。
At the time, when researchers needed random numbers, they used books of random digits like this one,当時、研究者が乱数を必要とするときは、このような乱数表の本を使っていました、
and the ENIAC didn't have nearly enough memory to store all the random numbers it would need either.そしてENIACには、必要となるすべての乱数を保存するだけのメモリも到底ありませんでした。
So von Neumann came up with a surprisingly simple way for the ENIAC to generate its own random numbers.そこでフォン・ノイマンは、ENIACが自ら乱数を生成するための驚くほど単純な方法を思いつきました。
Let's say I want to generate a bunch of random four-digit numbers.たとえば、ランダムな4桁の数字をたくさん作りたいとしましょう。
So the way we're going to do this is I'm actually going to start by choosing one, which is called the seed.その方法は、まず一つ選ぶことから始めます。これをシードと呼びます。
So let's try with two thousand one hundred and thirty-seven.では、2137で試してみましょう。
So what I'm going to do next is square it, and two thousand one hundred and thirty-seven squared is four million five hundred and sixty-six thousand seven hundred and sixty-nine.次にやることは、これを2乗することです。2137の2乗は456万6769です。
Now I'm going to take the four middle digits of this number, but to do that first, I have to add a zero to the front because we initially had a seven-digit number.ここでこの数の真ん中4桁を取りますが、そのためにはまず先頭に0を足す必要があります。なぜなら最初は7桁の数だったからです。
I won't use the digits at the edges because they're actually more predictable.端の桁は使わないのは、実際により予測しやすいからです。
So the last two digits only depend on the end of the seed because thirty-seven squared ends in one thousand three hundred and sixty-nine.下2桁はシードの末尾だけに依存します。37の2乗は1369で終わるからです。
So anything ending in thirty-seven squares to something ending in sixty-nine.つまり37で終わるものはすべて、2乗すると69で終わります。
So that's why we get rid of these guys here.だからここにあるこいつらを取り除くのです。
Also, every seed in the 2,100s is gonna square to somewhere between 4.4 and 4.9 million.また、2100台のシードはすべて、2乗すると440万から490万の間になります。
So they all start with a zero and a four.だからどれも0と4で始まります。
So we can get rid of that too.だからそれも取り除けるのです。
But the middle digits get a contribution from every digit in the seed.しかし真ん中の桁は、シードのすべての桁からの影響を受けます。
So 5,667 is gonna be the next number in the sequence.ですから5667が数列の次の数になります。
So if we square that, we get 32 million, 114,889.それを2乗すると、3211万4889になります。
Now I disregard the two digits at either end, and you can just keep going.ここで両端の2桁ずつを切り捨てれば、あとは繰り返すだけです。
Looking at these numbers, there's no obvious pattern.これらの数字を見ても、明らかな規則性はありません。
But watch what happens if I keep going.でも、このまま続けるとどうなるか見てください。
Starting from 2,137, after 43 steps, I get 4,100, then 8,100, and then 6,100, and then 2,100, and then 4,100 again.2137から始めて43ステップ後には、4100、次に8100、そして6100、次に2100、そして再び4100になります。
The sequence gets stuck in this loop.数列はこのループにはまってしまいます。
From here on, the generator will produce these same four numbers over and over forever.ここから先、この生成器はこの4つの数字を永遠に繰り返し出し続けます。
And nearly two thirds of all four-digit seeds end up in this exact loop.そして4桁のシードのほぼ3分の2が、このまったく同じループに行き着きます。
Others end up at zero, and once they do, every number that follows is also zero.他のものはゼロに行き着き、一度そうなると、その後に続く数はすべてゼロになります。
Almost one in five starting values end up here.開始値のほぼ5分の1がここに行き着きます。
In fact, if you try every possible four-digit starting value, every single sequence eventually gets stuck in one of just eight traps.実際、4桁の開始値をすべて試すと、すべての数列が最終的にはわずか8つの罠のいずれかにはまります。
Now, von Neumann knew that these traps were a serious problem, so for the first ENIAC simulation,さて、フォン・ノイマンはこれらの罠が深刻な問題であることを知っていたので、最初のENIACシミュレーションでは、
the team actually used eight-digit numbers, not four, so they produced much longer sequences before they looped.チームは実際には4桁ではなく8桁の数字を使ったため、ループする前にはるかに長い数列を生成しました。
They also statistically tested the first two thousand numbers for randomness by hand.彼らはまた、最初の2000個の数字についてランダム性を手作業で統計的に検定しました。
Then, rather than risk running into an unexpected loop, they programmed the ENIAC to restart from the original seed after it had got through these two thousand numbers.そして、予期せぬループに陥るリスクを冒すよりも、彼らはこの2000個の数字を処理し終えたら元のシードから再開するようENIACにプログラムしました。
And in the spring of 1948, the ENIAC finally ran the first computerized simulations of neutron behavior.そして1948年春、ENIACはついに中性子の挙動に関する初のコンピューターシミュレーションを実行しました。
Von Neumann wrote to Ulam, the results are very promising and the method is clearly a one hundred percent success.フォン・ノイマンはウラムに手紙を書き、結果は非常に有望であり、この方法は明らかに100パーセント成功だと述べました。
The approach became known as the Monte Carlo method, named after Monte Carlo, Monaco, where Ulam's uncle liked to gamble.この手法はモンテカルロ法として知られるようになり、その名はウラムの叔父がギャンブルを好んだモナコのモンテカルロに由来します。
Today, it's one of the most important tools in statistics and scientific computing.今日では、統計学と科学計算における最も重要なツールの一つです。
Now this sequence of numbers isn't truly random.さて、この数列は真にランダムではありません。
If you start with the same seed, you get exactly the same sequence every time.同じシードから始めれば、毎回まったく同じ数列が得られます。
So they're called pseudo random numbers.だから疑似乱数と呼ばれるのです。
But that didn't actually stop them from being useful, as Monte Carlo spread beyond Los Alamos, so did this demand for pseudo random numbers.しかし、それが役に立つのを妨げることは実際にはなく、モンテカルロ法がロスアラモス以外にも広がるにつれ、この疑似乱数への需要も広がりました。
Still, as von Neumann joked, anyone who considers arithmetical methods of producing random digits is, of course, in a state of sin.それでも、フォン・ノイマンが冗談で言ったように、乱数を生成する算術的方法を考える者は、もちろん罪の状態にあるのです。
Because pseudo random numbers came with three major challenges:疑似乱数には3つの大きな課題があったからです:
one, sequences could get stuck in these short loops; two, even sequences that looked random could hide patterns;1つ目は、数列がこのような短いループにはまってしまう可能性があること、2つ目は、ランダムに見える数列でさえパターンを隠している可能性があること、
and three, if someone knew the seed, they could work out every number that followed.そして3つ目は、もし誰かがシードを知っていれば、その後に続くすべての数字を割り出せてしまうことです。
They were predictable.予測可能だったのです。
So you got to show me how we get these diamonds then.じゃあ、このダイヤモンドをどうやって手に入れるのか見せてくれよ。
Yeah.うん。
All right.よし。
This is Matthew Bolan, Minecraft expert and third year PhD student in mathematics at the University of Toronto.こちらはマシュー・ボーラン、Minecraftの専門家でトロント大学数学科の博士課程3年生です。
Well, I shall follow you, sir.では、お供しますよ、先生。
If you haven't played Minecraft before, diamonds are a big deal.Minecraftをプレイしたことがない方のために言うと、ダイヤモンドはとても重要です。
I don't know if I've ever made a full diamond set.フルダイヤ装備を作ったことがあるかどうかわからないな。
We're gonna change that today.今日はそれを変えるぞ。
Every Minecraft world is made up of chunks.すべてのMinecraftのワールドはチャンクで構成されています。
They're segments, 16 blocks wide in the x direction and 16 blocks in the z direction.それらは区画で、x方向に16ブロック、z方向に16ブロックの幅があります。
And in our version, each chunk originates at most a single vein of diamond ore that is hidden somewhere below the surface.そして私たちのバージョンでは、各チャンクには地表下のどこかに隠されたダイヤモンド鉱石の鉱脈が最大で1つだけ生成されます。
Okay.わかった。
So what are we looking for?じゃあ、何を探せばいいの?
So we are looking for either a clay patch or a gravel patch.だから粘土のパッチか砂利のパッチのどちらかを探しているんだ。
What you do is you pull up your F3 screen.やることはF3画面を開くことです。
You locate which direction is positive z.プラスZ方向がどちらかを確認します。
So in this case, that's this way.だからこの場合は、こっちの方向だね。
Yeah.うん。
And what you do for clay, you add three.そして粘土の場合は、3を足します。
So here, this was the center, and we go one, two, three in the positive z.だからここ、これが中心で、プラスZ方向に1、2、3と進みます。
And now, if we dig down here.そして今、ここを掘り下げると。
Unless it got blocked by bedrock or something, or there's like a cave down there where it couldn't spawn in, there will be a diamond ore under this block.岩盤に塞がれたり、下に洞窟があってスポーンできなかったりしない限り、このブロックの下にダイヤモンド鉱石があるはずです。
Let's give it a shot.やってみよう。
Oh no way!うそだろ!
Did you get anything?何か出た?
I did.出たよ。
I got eight.8個取れた。
You got eight.8個取れたんだね。
Let's go.やったぜ。
I got eight.8個取れたよ。
Oh, I'm a rich man.ああ、俺は金持ちだ。
Thank you, Matt.ありがとう、マット。
Okay.オッケー。
Okay.オッケー。
In this version of Minecraft we're playing, the game uses an algorithm to generate the pseudo random numbers that determine where resources like clay and diamonds appear.今プレイしているこのバージョンのマインクラフトでは、粘土やダイヤモンドなどの資源がどこに出現するかを決める疑似乱数を生成するために、ゲームがアルゴリズムを使っています。
It works something like this.それはだいたいこんな仕組みです。
So I'm gonna take a wheel with seven positions.だから7つの目盛りがあるルーレットを用意します。
It has numbers going from zero through to six.0から6までの数字が書いてあります。
And what we're gonna do is we'll start at one and then multiply by some number.そしてやることは、1から始めて、ある数を掛けることです。
In this case, say three.この場合は、例えば3です。
So one times three gives us three.だから1かける3で3になります。
So we move the arrow to three.だから矢印を3に動かします。
Now we multiply three by three again, and we get nine.次に3にまた3を掛けると、9になります。
But there are only seven positions on this wheel, so we're going to have to wrap around.でもこのルーレットには7つの位置しかないので、ぐるっと回らなければなりません。
Essentially, what we're doing is dividing nine by seven, and that gives us a remainder of two.基本的にやっていることは、9を7で割って、余りが2になるということです。
So we're going to wrap around, and go to two.だから一周回って、2に行きます。
This kind of wrapping around pattern is called modular arithmetic, or just mod.このようなぐるっと回るパターンはモジュラー演算、つまり単にmodと呼ばれます。
And now we keep going.そしてこのまま続けます。
So two times three is six.だから2かける3は6です。
So we move to six, and then six times three is eighteen.だから6に移動して、それから6かける3は18です。
If you divide eighteen by seven, you get two with a remainder of four.18を7で割ると、2余り4になります。
So we get to four.だから4にたどり着きます。
Four times three is twelve.4かける3は12です。
The remainder after dividing by seven is five.7で割った後の余りは5です。
Five times three is fifteen, and the remainder after dividing by seven is one.5かける3は15で、7で割った後の余りは1です。
So what we've done is we've gone through every number except for zero before we started to repeat.つまり、私たちがやったことは、繰り返しが始まる前にゼロ以外のすべての数字を一通り巡ったということです。
The formula for this kind of algorithm looks like this.この種のアルゴリズムの式はこのようになります。
There's a simple linear relationship between the current number and the next.現在の数と次の数の間には単純な線形関係があります。
But the mod step keeps only the remainder after dividing by m, so instead of continuing up one straight line,しかしmodのステップではmで割った余りだけを残すので、一本の直線を上り続ける代わりに、
the values wrap around, falling along these parallel diagonals.値は折り返して、これらの平行な対角線に沿って落ちていきます。
So it is a linear rule using modular arithmetic, also called congruences.つまり合同式とも呼ばれるモジュラー演算を用いた線形規則なのです。
So these kinds of pseudorandom number generators got the name linear congruential generators, better known as LCGs.そこでこの種の疑似乱数生成器は線形合同法生成器、通称LCGと名付けられました。
With much larger numbers, LCGs can produce enormously long sequences of numbers before they repeat.はるかに大きな数を使えば、LCGは繰り返すまでに非常に長い数列を生成できます。
In the 1960s, IBM developed one called RANDU.1960年代にIBMはRANDUと呼ばれるものを開発しました。
It was included in IBM's scientific software and used in simulations of everything from radioactive decay to instruments aboard NASA's Skylab space station.それはIBMの科学計算ソフトウェアに含まれ、放射性崩壊からNASAのスカイラブ宇宙ステーション搭載機器まで、あらゆるシミュレーションに使われました。
And RANDU could generate over half a billion numbers before repeating.そしてRANDUは、繰り返すまでに5億個以上の数字を生成できました。
So at least that was one problem dealt with.ですから、少なくともその点では一つの問題は解決されました。
But a long sequence doesn't necessarily mean a good one.しかし、長い数列だからといって、必ずしも良い数列とは限りません。
Take a look at what happens if we take every three consecutive numbers and we plot them as coordinates in three-dimensional space.連続する3つの数字をひと組にして、三次元空間の座標としてプロットしたらどうなるか見てみましょう。
Right, if the numbers behaved independently, we'd expect the points to fill the cube kind of in a fuzzy cloud.そう、もし数字が独立に振る舞うなら、点はぼんやりとした雲のように立方体全体を埋め尽くすはずです。
And from this angle, they certainly seem to, and from most angles they do.そしてこの角度から見ると確かにそう見えますし、ほとんどの角度からはそう見えます。
But if you rotate the cube in just the right way, you can see that they actually line up in these 15 rows throughout the cube.しかし立方体をちょうど良い向きに回転させると、実際には立方体全体にわたって15列に並んでいるのが分かります。
There are enormous gaps where RANDU will never place a point, and it turns out that that is just an unavoidable feature of all LCGs because of that linear relationship.RANDUが決して点を置かない巨大な隙間があり、実はそれはその線形関係ゆえにすべてのLCGに避けられない特徴であることが分かります。
The second number is calculated from the first, and the third from the second, using exactly the same rule.2番目の数は1番目から、3番目の数は2番目から、全く同じ規則を使って計算されます。
So all three numbers are linked by a linear equation, and in three dimensions, a linear equation describes a plane.つまり3つの数はすべて線形方程式で結ばれており、三次元では線形方程式は平面を表します。
And the mod step creates a series of parallel planes.そしてmodのステップが一連の平行な平面を作り出すのです。
RANDU's particular choice of numbers made that pattern especially obvious, but other LCGs are much better at this.RANDUが特定の数値を選んだことで、そのパターンは特に顕著になりましたが、他のLCGはこの点ではるかに優れています。
In the 1990s, Java adopted one that adds a constant using a better multiplier and a much larger modulus.1990年代に、Javaはより良い乗数と、はるかに大きな法を用いて定数を加えるものを採用しました。
Its sequence takes over 281 trillion steps before repeating.その数列は、繰り返すまでに281兆ステップ以上を要します。
We can also plot its outputs the same way, and what we get is this.その出力を同じ方法でプロットすることもでき、その結果がこれです。
Now the planes are actually still there, but we can't see them because they're so closely packed together that the points more or less look like a random cloud.今も平面は実際にはまだ存在しますが、非常に密に詰まっているため見えず、点はほぼランダムな雲のように見えます。
So that is problem two dealt with.これで問題その2は解決です。
This edition of Minecraft is coded in Java, so for most of the game's history, it used Java's LCGこの版のMinecraftはJavaで書かれているため、ゲームの歴史の大部分で、JavaのLCGを使用してきました
to determine the placement of resources in a given chunk.特定のチャンクにおける資源の配置を決定するために。
But when Minecraft generated different resources, it didn't use completely independent starting numbers.しかしMinecraftが異なる資源を生成する際、完全に独立した開始番号を使ったわけではありませんでした。
Instead, it took the same underlying seed and added a different fixed number for each resource.代わりに、同じ基礎となるシードを使い、各資源ごとに異なる固定数を加えていました。
So for diamonds and river clay, those starting numbers differed by just three.ダイヤモンドと川の粘土の場合、それらの開始番号はわずか3だけ異なっていました。
Java then modified those seeds before using them, so the difference wasn't always three anymore.Javaはそれらのシードを使用する前に変更したため、その差はもはや常に3ではありませんでした。
But in most worlds, it fell into one of a few predictable values.しかしほとんどのワールドでは、いくつかの予測可能な値のいずれかに収まりました。
And because they went through the same LCG, the numbers used to choose their position were related.そしてそれらは同じLCGを経たため、それらの位置を選ぶために使われた数値は関連していました。
If you compare the results, the shared unknown part cancels out.結果を比較すると、共通の未知の部分が打ち消し合います。
So I didn't need to know the original seed of the Minecraft world.だから私はMinecraftワールドの元のシードを知る必要はありませんでした。
The location of the clay patch was enough to tell me where to look.粘土パッチの位置だけで、どこを探せばよいかが分かったのです。
Matthew has a great video on his channel that works through how this works in more detail.Matthewは彼のチャンネルで、これがどのように機能するかをより詳しく解説した素晴らしい動画を公開しています。
We've linked it in the description if you want to go check it out.ご覧になりたい方は、説明欄にリンクを貼ってあります。
But there is a more fundamental problem.しかし、より根本的な問題があります。
The outputs themselves can reveal enough information to predict what comes next.出力自体が、次に来るものを予測するのに十分な情報を明らかにしてしまう可能性があるのです。
See, Java's LCG keeps track of an internal number that is made up of forty-eight binary digits, and this is what Java's LCG実は、JavaのLCGは48ビットの2進数からなる内部数値を保持しており、これがJavaのLCGが
uses to generate the next number in the sequence.数列の次の数を生成するために使うものです。
But when it generates an integer output, it actually reveals thirty-two of those digits, leaving just sixteen hidden.しかし整数出力を生成する際、実際にはそのうち32桁を明らかにし、隠されるのはわずか16桁だけです。
And since it's binary, each can only be a zero or a one.そしてバイナリなので、それぞれ0か1のどちらかしか取れません。
So that's just sixty-five thousand five hundred and thirty-six possible values.つまり、可能な値はわずか6万5536通りだけということです。
Now, maybe that sounds like a lot, but a computer can test them against the very next output of the generator, and only one matches.それは多く聞こえるかもしれませんが、コンピューターはそれらをジェネレーターの次の出力と照合でき、一致するのは一つだけです。
And then you know the full forty-eight bit internal number.そして一致するものが一つだけになれば、48ビットの内部数全体が分かるのです。
And once you know that, you can calculate every number that follows.それが分かれば、その後に続くすべての数を計算できます。
And this is actually the same for all LCGs.そしてこれは実はすべてのLCGに当てはまります。
They can produce incredibly long sequences with no obvious patterns, but their simple mathematical structure still makes them predictable.一見パターンのない非常に長い数列を生成できますが、その単純な数学的構造ゆえに予測可能なのです。
Like LCGs.LCGのようなものですね。
They—they're not.それらは、そうではありません。
They—they—they cause all sorts of problems.それらは、あらゆる問題を引き起こすのです。
They're very exploitable.とても悪用されやすいのです。
Yeah, for when you—you—you have like a video game and you just need something quick and dirty, and you're not too worried about people like me.そう、例えばビデオゲームで手っ取り早く間に合わせたいときとか、私のような人をあまり気にしない場合にはね。
But I should point out that this trick doesn't actually work on the most recent versions of Minecraft.ただし、このトリックは実際には最新のMinecraftでは通用しないことを言っておくべきでしょう。
Once I published this trick, it got patched out of the game very quickly.私がこのトリックを公開したら、すぐにゲームから修正されてしまいました。
Oh no way!え、まさか!
I think a bug report was made in version 1.18.バージョン1.18でバグ報告がされたんだと思います。
What they did is they actually switched the random number generator that Minecraft uses to generate ores彼らがやったのは、Minecraftが鉱石の生成に使う乱数生成器を
to a different random number generator that would not have the particular flaw we're exploiting here.ここで悪用している特定の欠陥を持たない、別の乱数生成器に切り替えたことです。
They changed the whole changed the whole number generator.乱数生成器全体を変えたんだ。
Yeah, exactly.そう、まさにその通り。
You're gonna do the honors.君が栄誉を担うんだよ。
Okay, okay, okay.わかった、わかった、わかった。
Let's see if I can remember.覚えているか試してみよう。
Oh boy.おっと。
Okay.よし。
Pants, boots, chest piece, helmet.ズボン、ブーツ、チェストプレート、ヘルメット。
The trick in Minecraft works because the developers chose to put this particular random number generator into the game.Minecraftでのトリックが機能するのは、開発者がこの特定の乱数生成器をゲームに入れることを選んだからです。
But it's a good reminder of how much the tools you use matter when you're building software.でもこれは、ソフトウェアを作るときに使うツールがいかに重要かを示す良い例です。
And that brings me to today's sponsor, Hostinger.そしてここで今日のスポンサー、Hostingerの紹介です。
Hostinger is an all-in-one platform for building, running, and growing businesses online.Hostingerは、オンラインでビジネスを構築・運営・成長させるためのオールインワンプラットフォームです。
So whether you need a website or a web app or an online store, you can manage it all from one place, and you don't even have to know how to code.ウェブサイトでもウェブアプリでもオンラインストアでも、すべてを一か所で管理でき、コーディングの知識すら必要ありません。
So, for example, let's say I want to start a business selling all those hard-earned diamonds that I just mined.例えば、私が採掘したばかりの苦労して手に入れたダイヤモンドを売るビジネスを始めたいとしましょう。
So I can just describe the website I want in plain English, and Hostinger's AI is going to build an initial version.だから、作りたいウェブサイトを plain English、つまり普通の英語で説明するだけで、HostingerのAIが初期バージョンを作ってくれるのです。
And if I want to change something, I can just describe.そして何かを変更したい場合は、ただ説明するだけでいいのです。
But that is just a starting point because I can also add my own custom code.しかし、それは単なる出発点に過ぎません。なぜなら自分独自のカスタムコードを追加することもできるからです。
Instead of having to build everything from scratch, I can just spend more time mining diamonds.すべてをゼロから作る代わりに、ダイヤモンドの採掘により多くの時間を費やすことができるのです。
Right now, Hostinger is doing Black Friday offers, and if you go to Hostinger.com/Veritasium, you can use code Veritasium for an additional ten percent off.現在、Hostingerはブラックフライデーオファーを実施中で、Hostinger.com/Veritasiumにアクセスすれば、コードVeritasiumを使ってさらに10%オフになります。
I want to thank Hostinger for sponsoring this part of the video.この動画のこの部分のスポンサーであるHostingerに感謝したいと思います。
And now back to the casino where gamblers were exploiting random number generators to win thousands of dollars.さて話をカジノに戻しましょう。そこではギャンブラーたちが乱数生成器を悪用して数千ドルを勝ち取っていました。
On July fourteenth, twenty fourteen, investigators detained one of the gamblers who had been repeatedly winning on slot machines across the U.S.2014年7月14日、捜査官は全米のスロットマシンで繰り返し勝っていたギャンブラーの一人を拘束しました。
So when they picked these guys up in California, they were able to get one of the phones, and they were able to see that the video was actually being彼らがカリフォルニアでこの男たちを捕まえたとき、携帯電話の1台を押収し、その映像が実際に
transmitted back to a server in Russia,ロシアのサーバーに送信されていたことが
more specifically, a team in Saint Petersburg, led by a hacker only known As Alex,より具体的には、Alexとしてのみ知られるハッカーが率いるサンクトペテルブルクのチームに、
five years earlier, Russia actually banned most of its gambling, and thousands of slot machines were being sold off.その5年前、ロシアは実際にほとんどのギャンブルを禁止し、何千台ものスロットマシンが売りに出されていました。
So Alex got hold of some of these machines and started taking them apart.そこでAlexはこれらのマシンのいくつかを入手し、分解し始めました。
There's a processing board, and then there's what they refer to as a SNIB, which is a slot machine interface board.処理基板があり、そしてSNIBと呼ばれるスロットマシンインターフェースボードがあります。
Basically, the the the processing board is locked into the game that comes with the machine.基本的に、その処理基板はマシンに付属のゲームにロックされています。
So if you can, once you have access to the device, it's it's just a matter of time before you it's reverse engineered.だから、デバイスにアクセスできさえすれば、リバースエンジニアリングされるのは時間の問題なのです。
The thing is, though, these machines weren't using an LCG like Java.ただ問題は、これらのマシンがJavaのようなLCGを使っていなかったことです。
They used a far more complicated random number generator.彼らははるかに複雑な乱数生成器を使っていました。
A lot of them were using the same Mersenne Twister algorithm.その多くは同じメルセンヌ・ツイスタ アルゴリズムを使っていました。
This algorithm still starts with a seed, but instead of using this to generate one number, it fills a table of 624 numbers.このアルゴリズムもシードから始まりますが、これを使って1つの数値を生成する代わりに、624個の数値のテーブルを埋めます。
It then performs a calculation called a twist, combining the binary digits from different parts of the table to produce 624 new numbers.そしてツイストと呼ばれる計算を行い、テーブルの異なる部分からの2進数の桁を組み合わせて624個の新しい数値を生成します。
Then it takes the first number in this new table, runs it through another series of calculations, and it produces its first pseudo-random output.そしてこの新しいテーブルの最初の数値を取り出し、さらに一連の計算を通して、最初の疑似乱数出力を生成します。
It does the same with the next number and the next until it has produced 624 outputs.624個の出力を生成するまで、次の数値、その次と同様に行います。
Then it twists the whole table again and the process continues.そしてテーブル全体を再びツイストし、そのプロセスが続きます。
And its sequence is huge.そしてその周期は巨大です。
The number of steps before it repeats has more than six thousand digits.繰り返すまでのステップ数は6000桁以上あります。
But despite all that, every step still follows these fixed mathematical rules, and those were rules that Alex was actually able to work out by studying the software inside of his own machines.しかしそれにもかかわらず、すべてのステップは依然としてこれらの固定された数学的ルールに従っており、アレックスは自分のマシン内部のソフトウェアを研究することで実際にそれらのルールを解明することができました。
So when his team received videos of spins from casinos in the U.S.,そのため彼のチームが米国のカジノからスピンの動画を受け取ると、
they could work backwards and they could compare them with their own machines and predict when a winning spin was most likely.彼らは逆算することができ、自分たちのマシンと比較して、当たりのスピンがいつ出やすいかを予測できました。
But inside the slot machines, the random number generator kept running even when nobody was playing, and the outcome depended on the number selected at the instant the player pressed spin.しかしスロットマシン内部では、誰もプレイしていないときでも乱数生成器は動き続け、結果はプレイヤーがスピンを押した瞬間に選ばれた数値に依存しました。
So the gamblers had to press at exactly the right time.そのためギャンブラーたちは正確に適切なタイミングで押さなければなりませんでした。
But it takes a human roughly a quarter of a second to react.しかし人間が反応するのにはおよそ4分の1秒かかります。
So Alex built that delay into the system.そこでアレックスはその遅延をシステムに組み込みました。
He created an app that made the gambler's phone vibrate a quarter of a second before they actually needed to press.彼は、実際に押す必要がある4分の1秒前にギャンブラーの携帯電話を振動させるアプリを作りました。
And now this trick didn't guarantee a win on every spin,そして今やこの手口は毎回のスピンでの勝利を保証するものではありませんでしたが、
but a four-person team could reportedly take more than two hundred and fifty thousand dollars in a week.4人チームで1週間に25万ドル以上を稼げたと伝えられています。
So it was pretty effective.つまりかなり効果的だったのです。
In the end, the four men who were caught as part of the scheme were charged with conspiracy to commit fraud.最終的に、この計画の一環として捕まった4人の男たちは詐欺共謀罪で起訴されました。
Three of them were sentenced to two years in prison, while one chose to cooperate with the FBI.そのうち3人は懲役2年の判決を受け、1人はFBIに協力することを選びました。
Oh, but is it possible that people are still running this exploit in casinos still?ああ、でも今でもカジノでこの不正行為を続けている人々がいる可能性はありますか?
Yeah, it would be.ええ、あり得るでしょう。
Completely surprised if they weren't.そうでなかったら完全に驚きますね。
Oh, really?ああ、本当に?
Yeah, yeah.うん、うん。
There's a lot of those boxes are still out there.そういう箱はまだたくさん残っています。
So ultimately, all of these generators fail at being unpredictable if you know enough about how they work, and if you can study enough of their outputs.つまり最終的に、これらの生成器はすべて、その仕組みを十分に知り、その出力を十分に研究できれば、予測不可能であることに失敗するのです。
But we need random numbers for digital security.しかしデジタルセキュリティのために乱数が必要なのです。
They're used to protect everything from our messages to our bank accounts, and if those numbers can be predicted, then that security can be compromised.それらは私たちのメッセージから銀行口座まで、あらゆるものを守るために使われていて、もしその数字が予測できれば、そのセキュリティは侵害され得るのです。
So we went to the National Institute of Standards and Technology in Boulder, Colorado.そこで私たちはコロラド州ボルダーにある国立標準技術研究所に行きました。
NIST sets the standards for secure random number generation, but one team there is trying something even more ambitious.NISTは安全な乱数生成の標準を定めていますが、そこのあるチームはさらに野心的なことに挑戦しています。
So what we're trying to do is say, what's the best random number generator that nature allows you to build?つまり私たちがやろうとしているのは、自然が許す最高の乱数生成器とは何か、と言うことなんです。
Yeah.うん。
And that's a lot of what our work is here.そして、それがここでの私たちの仕事の多くなんです。
And that's what this is about.そして、これがまさにこの取り組みの内容なんです。
Yep, this is what all of this experiment is to try to make the world's best random number generator.ええ、まさにこの実験のすべては、世界最高の乱数生成器を作ろうとするためのものなんです。
Really try to use physics and science to try to develop the best measurements possible, and then we use those measurements to develop standards.本当に物理学と科学を使って可能な限り最高の測定を開発しようとしていて、そしてその測定を使って標準を開発するんです。
And that includes the standards for generating random numbers for digital security, because for encryption, you need generators that are much harder to predict than the ones we've seen so far.そしてそれにはデジタルセキュリティのための乱数生成の標準も含まれます。なぜなら暗号化には、これまで見てきたものより予測がはるかに難しい生成器が必要だからです。
So cryptographers have developed a different kind of generator.そこで暗号学者たちは別の種類の生成器を開発しました。
The idea behind them is pretty simple.その背後にある考えはとてもシンプルです。
Start with a string of numbers, say just one, two, three, four, and so on.数字の列から始めます。例えば単に1、2、3、4といった具合に。
And now you feed each of those numbers into an encryption algorithm.そして今、それらの数字をそれぞれ暗号化アルゴリズムに入力します。
The algorithm scrambles them using a secret key, which is based on a large random number.アルゴリズムは秘密鍵を使ってそれらをスクランブルします。その鍵は大きな乱数に基づいています。
Encryption transforms the inputs so thoroughly that without the key, the outputs look completely unrelated.暗号化は入力を徹底的に変換するので、鍵がなければ出力は完全に関係がないように見えます。
In a way, that key plays the role of a seed.ある意味、その鍵がシードの役割を果たします。
it's the one random number you need to start, and it decides every number that comes out.それは開始するために必要な一つの乱数であり、出てくるすべての数字を決定します。
Whereas with Java, its outputs revealed most of its hidden state, and with the Mersenne Twister, even the extra steps hiding its outputs could be reversed.一方Javaでは、その出力から隠された内部状態のほとんどが明らかになり、メルセンヌ・ツイスタでさえ、出力を隠すための余分な手順も逆算できてしまいました。
Here, even if you know exactly how the encryption works and you've seen all its inputs and outputs, there's no practical way to recover the secret key.ここでは、暗号化の仕組みを正確に知っていて、そのすべての入力と出力を目にしていたとしても、秘密鍵を取り戻す実用的な方法はありません。
And guessing it isn't realistic either.そしてそれを推測することも現実的ではありません。
A common key length is 128 bits, so that's 128 ones and zeros, and over 300 trillion trillion trillion possible keys.一般的な鍵長は128ビットで、つまり128個の1と0の並びであり、300澗を超える可能な鍵が存在します。
And without the key, predicting the next output, it's practically impossible.そして鍵がなければ、次の出力を予測することは、実質的に不可能です。
This is one of the ways that you can build a cryptographically secure pseudo-random number generator, and it solves our third problem, predictability.これは暗号学的に安全な疑似乱数生成器を構築する方法の一つであり、私たちの3つ目の問題、予測可能性を解決します。
But where did that secret key actually come from?しかし、その秘密鍵は実際にはどこから来たのでしょうか?
Because the algorithm can't create unpredictability from nothing on its own.なぜなら、そのアルゴリズムは単独では無から予測不可能性を生み出すことはできないからです。
It actually needs something random to start with.実際には、開始するために何かランダムなものが必要なのです。
And for that, computers turn to the physical world.そしてそのために、コンピュータは物理世界に目を向けるのです。
Many modern processors have built-in hardware random number generators that measure tiny fluctuations in electrical signals to provide those unpredictable seeds.多くの現代のプロセッサには、電気信号の微小なゆらぎを測定して、それらの予測不可能なシードを提供するハードウェア乱数生成器が内蔵されています。
One company in California, Cloudflare, even uses a whole wall of lava lamps to generate random seeds for its algorithms.カリフォルニアのある企業、Cloudflareは、アルゴリズムのためのランダムなシードを生成するために、溶岩ランプの壁一面まで使っています。
So does that mean the problem is solved?では、それは問題が解決したということでしょうか?
Not exactly.正確にはそうではありません。
If you take a coin toss, we normally think of this as a random event: heads or tails.コイントスを取り上げると、私たちは通常これをランダムな出来事だと考えます:表か裏か。
Only under carefully controlled conditions, you can actually make the coin land heads every single time, and that's because a coin follows the laws of classical mechanics.ただ、慎重に管理された条件下では、実際には毎回必ず表が出るようにできるのです、それはコインが古典力学の法則に従うからです。
So if you control exactly how it starts and how it's flipped, you can predict how it will land every single time.つまり、最初の状態と投げ方を正確に制御すれば、毎回どのように着地するかを予測できるのです。
The French mathematician Pierre Simon Laplace actually took this idea even further.フランスの数学者ピエール=シモン・ラプラスは、実際にこの考えをさらに推し進めました。
He imagined an intelligence that knew the position and motion of every particle in the universe.彼は、宇宙のすべての粒子の位置と運動を知っている知性を想像しました。
So according to classical mechanics, it could calculate everything that would ever happen.つまり古典力学によれば、それはこれから起こるすべてのことを計算できるはずなのです。
You know, I looked long and hard to try to figure out what is a good definition of randomness.ええ、私はランダムネスの良い定義とは何かを突き止めようと、長い間一生懸命探しました。
Yeah, and my definition of randomness is just something that nobody could have predicted in advance, and not just nobody.ええ、私のランダム性の定義は、単に誰も事前に予測できなかったものということで、ただ誰も、というだけではありません。
I don't mean just humans, but like anything in the universe.人間だけという意味ではなく、宇宙の中の何ものでも、という意味です。
So that's what Christopher's team is trying to achieve.それがクリストファーのチームが達成しようとしていることです。
Not just to generate numbers that seem random, but to prove that they are genuinely unpredictable.単にランダムに見える数字を生成するだけでなく、それらが真に予測不可能であることを証明することです。
We don't want to do seeds at all, and we don't want to do algorithms at all.私たちはシードを全く使いたくありませんし、アルゴリズムも全く使いたくありません。
So they've turned to quantum mechanics because some quantum measurement outcomes are fundamentally unpredictable.そこで彼らは量子力学に目を向けました。なぜなら一部の量子測定の結果は根本的に予測不可能だからです。
So on this setup right here, we start with a very bright laser, very intense laser.ですからここのこの装置では、非常に明るいレーザー、非常に強力なレーザーから始めます。
You're generating about a hundred million of these pulses per second, and this pulse of of light comes in and interacts with this crystal here.1秒間に約1億個のこのパルスを生成していて、この光のパルスが入ってきてここのこの結晶と相互作用します。
What can happen is the interaction of this light with this crystal.起こり得るのは、この光とこの結晶との相互作用です。
Sometimes one of our photons will interact with it and fission into what we call a pair of daughter photons.時々、私たちの光子の1つがそれと相互作用して、娘光子ペアと呼ぶものに分裂します。
Now each photon has a property called polarization, which corresponds to the direction in which light's electric field oscillates.そして各光子には偏光と呼ばれる性質があり、これは光の電場が振動する方向に対応します。
And the researchers have arranged the experiment so that the pair can be produced with both photons polarized either horizontally or both vertically,そして研究者たちは、2つの光子が両方とも水平に偏光しているか、あるいは両方とも垂直に偏光しているかのどちらかでペアが生成されるように実験を組んでいます、
but there's no way to distinguish which.しかしどちらなのかを区別する方法はありません。
So the photons end up in a quantum superposition of both possibilities.そのため光子たちは両方の可能性の量子重ね合わせの状態になります。
This is very much like a Schrödinger cat type state, but extended to two particles.これはまさにシュレーディンガーの猫のような状態ですが、2つの粒子に拡張されたものです。
And now it's like they are kind of both of those at the same time.そして今、それらはある意味で同時にその両方であるような状態なのです。
The photons share a quantum state no matter where in the universe they are.光子たちは宇宙のどこにあろうと量子状態を共有します。
In other words, they are entangled, and this means that when we measure both, the results are correlated.言い換えれば、それらはもつれ合っており、つまり両方を測定すると結果が相関するのです。
But first, they need to send the photons to two separate measurement stations, and that means they have to get each photon into an optical fiber.しかしまず、光子たちを2つの別々の測定ステーションに送る必要があり、そのためには各光子を光ファイバーに入れなければなりません。
The really hard part is these fiber cables right here.本当に難しい部分はここのファイバーケーブルです。
The actual fiber optic cable inside you can't see it.中の実際の光ファイバーケーブルは見ることができません。
It's only about ten microns in diameter.直径はわずか約10ミクロンです。
Yeah.ええ。
And to put that in context, that's about one tenth the diameter or width of a human hair.背景として説明すると、それは人間の髪の毛の直径や幅の約10分の1です。
So it's a very very tiny target.つまり、非常に非常に小さな標的なのです。
And what we have to do is what I like to call quantum archery.そして私たちがしなければならないのは、私が量子アーチェリーと呼ぶのが好きなことです。
So you know I think about Robin Hood and the fact that you know he could kind of pull back and shoot an arrow and hit a target and dead in the bullseye.ロビン・フッドのことを考えてみてください、彼が弓を引いて矢を放ち、標的のど真ん中に命中させることができたという事実です。
Yeah.ええ。
And then he keeps shooting arrows and keeps splitting the center of the arrow.そして彼は矢を射続け、矢の中心を割り続けます。
We're doing a version of that where now Robin Hood has two targets and he has a single bow and he has to shoot two arrows at a time.私たちはそのバージョンを行っています、ロビン・フッドには2つの標的があり、1つの弓しかなく、一度に2本の矢を射なければならないのです。
And yet he's able to continually keep splitting these two targets.それでも彼はこれら2つの標的を割り続けられるのです。
Into these ten micron holes.これらの10ミクロンの穴に。
Into these ten micron holes.これらの10ミクロンの穴に。
The photons then arrive at two measurement stations, one hundred and ten meters apart.光子はその後、110メートル離れた2つの測定ステーションに到着します。
This means that even a signal traveling at the speed of light can't get from one to the other in time to impact the measurement.これは、光速で進む信号でさえ、一方から他方へ時間内に到達して測定に影響を与えることができないことを意味します。
Now, at each station, the researchers measure the photon's polarization, but they can choose between two different angles to measure it at.さて、各ステーションでは、研究者たちは光子の偏光を測定しますが、測定する角度を2つの異なる角度から選ぶことができます。
And each station chooses its angle at random just before the photon arrives.そして各ステーションは、光子が到着する直前にランダムにその角度を選びます。
What sort of result are you getting here?ここではどんな結果が得られているのですか?
And there, that gives you that ultimate final random number.そして、それが究極の最終的な乱数となるのです。
Either detect a photon or I don't.光子を検出するか、しないか、のどちらかです。
Okay, a detection gives us a one.わかりました、検出できれば1になります。
No detection gives us a zero.検出できなければ0になります。
But wait, they're using random numbers to choose the measurements in an experiment that is designed to generate random numbers.でも待ってください、彼らは乱数を生成するために設計された実験で、測定を選ぶために乱数を使っているのです。
It doesn't make sense.意味がわかりません。
How are these guys random if they don't use the whole setup?この装置全体を使わないのに、どうしてこれらはランダムなのですか?
So, you know, it takes randomness to to make randomness.つまり、ランダム性を作るにはランダム性が必要なのです。
You just need pretty good randomness.かなり良いランダム性が必要なだけです。
And this whole setup is a way to kind of purify or take you know what is pretty good randomness and turn it into something that is like.そしてこの装置全体は、かなり良いランダム性であるものを浄化する、あるいは取り入れるための方法なのです、それを次のようなものに変えるために。
certifiably, like really good randoms.認証可能な、本当に良い乱数に。
The first numbers choose which measurements to perform, but the numbers NIST wants to certify are the zeros and ones coming out of the detectors.最初の数字はどの測定を行うかを選択しますが、NISTが認証したい数字は検出器から出てくる0と1です。
Because each station has two possible measurement angles, there are four possible combinations of measurements.各ステーションには2つの可能な測定角度があるため、測定の組み合わせは4通り考えられます。
Now, if the photons were simply carrying predetermined answers for every possible measurement, there's a mathematical limit to how strongly the results from the two stations could be correlated.さて、もし光子があらゆる可能な測定に対してあらかじめ決められた答えを運んでいるだけなら、2つのステーションからの結果がどれほど強く相関し得るかには数学的な限界があります。
But when the researchers compare the results, the correlations exceed that limit.しかし研究者たちが結果を比較すると、その相関はその限界を超えています。
This is called a violation of Bell's inequality.これはベルの不等式の破れと呼ばれています。
We actually made an entire video about Bell tests, and it goes much deeper into the topic.実はベルテストについての動画を丸ごと1本作っていて、このトピックをさらに深く掘り下げています。
So we've linked it in the description if you want to find out more about how this works.仕組みについてもっと知りたい方は、概要欄にリンクを貼っておきました。
Because the measurement choices are independent and that the stations can't communicate during the measurements,測定の選択は独立であり、測定中にステーション間で通信できないため、
that means the photons' results can't be explained by any kind of locally predetermined outcome.それは光子の結果が局所的にあらかじめ決められたようないかなる結果でも説明できないことを意味します。
So the experiment is actually testing whether those numbers.つまりこの実験は実際には、それらの数値がどうかを検証しているのです。
Contain genuine unpredictability, but there are other potential loopholes.真の予測不可能性を含むかどうか、しかし他にも潜在的な抜け穴があります。
The one that my own group got involved with was called the freedom of choice loophole.私自身のグループが関わったのは、選択の自由の抜け穴と呼ばれるものでした。
So no one should be surprised if a student gets the quiz ahead of time, knows what questions will be asked, and then aced the quiz the next day.生徒が事前にクイズを入手し、どんな問題が出るかを知っていて、翌日満点を取っても誰も驚かないでしょう。
These particles, again to speak kind of anthropomorphically, shouldn't be allowed to know what questions will be posed before they reach their detectors, and that comes back to randomness, really at its core.これらの粒子も、擬人化して言えば、検出器に到達する前にどんな質問が出されるかを知るべきではなく、それは本質的にはランダム性に帰着します。
Can you really be confident that the selection of measurements to perform had no kind of correlations ahead of time?実行する測定の選択に事前の相関が全くなかったと、本当に確信できるでしょうか?
There are a few ways to do this, but David Kaiser and his collaborators came up with this.いくつかの方法がありますが、デイビッド・カイザーと彼の共同研究者たちがこれを考案しました。
What we wanted to do was turn the universe itself into a pair of random number generators.私たちがやりたかったのは、宇宙そのものを一対の乱数発生器にすることでした。
They pointed two telescopes at distant quasars on opposite sides of the sky and used the wavelengths from individual photons arriving from each of the quasars彼らは2台の望遠鏡を空の反対側にある遠方のクエーサーに向け、各クエーサーから到着する個々の光子の波長を利用して
to choose which measurements to perform.どの測定を行うかを選択しました。
Now that light had been traveling for billions of years from regions of the universe that hadn't been able to communicate with each other since nearly the Big Bang,その光は、ビッグバン以来ほぼ互いに通信できなかった宇宙の領域から何十億年もかけて旅してきたもので、
and assuming no one had interfered with the light, any hidden coordination between the measurement choices and the results would have had to happen billions of years ago.そして誰もその光に干渉していなかったと仮定すれば、測定の選択と結果の間の隠れた連携は、何十億年も前に起きていなければならなかったことになります。
Now this didn't completely eliminate the loophole, but it pushed that possibility much further back in time.これで抜け穴が完全に消えたわけではありませんが、その可能性を時間的にずっと過去へと押しやったのです。
David's team were investigating whether some hidden explanation could account for the results, but NIST has to consider something else.デイビッドのチームは、何か隠れた説明が結果を説明できるかを調べていましたが、NISTは別のことを考慮しなければなりません。
If I was a hacker, how would I attack the system?もし私がハッカーだったら、どうやってそのシステムを攻撃するだろうか?
What would I do?何をするだろうか?
In principle, two people working together could shine their own light into those telescopes and control which measurements are selected and potentially rig the results.原理的には、共謀する2人がそれらの望遠鏡に自ら光を照射して、どの測定が選ばれるかを制御し、結果を操作する可能性があります。
So NIST has to keep the random number generators used to choose its measurements physically protected from outside interference.そのためNISTは、測定の選択に使う乱数発生器を外部の干渉から物理的に保護しておかなければなりません。
They can't rely on quasar light for that.そのためにはクエーサーの光に頼ることはできないのです。
That makes it much harder for someone to hack the system, but that doesn't prove their choices are independent of the devices being tested.それによりシステムへのハッキングははるかに困難になりますが、それで選択がテスト対象の装置から独立していることが証明されるわけではありません。
NIST still has to assume that,NISTは依然としてそれを仮定しなければなりません、
along with the impossibility of faster-than-light signaling, accurate timing and distance measurements, and faithful, secure recording of the results.光より速い信号伝達の不可能性、正確なタイミングと距離の測定、そして結果の忠実で安全な記録とともに。
If those assumptions hold, then the Bell test can certify how much genuine unpredictability the detector outputs contain.それらの仮定が成り立つなら、ベルテストは検出器の出力にどれだけの真の予測不可能性が含まれているかを証明できます。
If we use entanglement, you can do these types of measurements, and you can show that there's nothing that could have predicted what's happening in advance.もつれを利用すれば、この種の測定ができ、何が起こるかを事前に予測できたものは何もないことを示せるのです。
But the raw measurements aren't necessarily an even mixture of ones and zeros.しかし生の測定値は必ずしも1と0が均等に混ざっているわけではありません。
There might be far more zeros than ones.0が1よりはるかに多いかもしれません。
The Bell test tells the researchers how much unpredictability is present across millions of measurements,ベルテストは数百万回の測定全体にどれだけの予測不可能性があるかを示しますが、
but it doesn't give them a neat sequence of evenly balanced, independent random bits.きれいに均等で独立したランダムビットの並びを直接与えるわけではありません。
So they need a way to get that unpredictability out.だからその予測不可能性を取り出す方法が必要なのです。
The basic idea is similar to the one von Neumann proposed in the same 1951 paper as his state of syndrome.基本的な考え方は、フォン・ノイマンが1951年の同じ論文でシンドロームの状態とともに提案したものと似ています。
You flip a coin twice.コインを2回投げます。
If you get heads then tails, you call that a zero, and if you get tails and then heads, you call that a one.表そして裏が出たら、それをゼロと呼び、裏そして表が出たら、それを1と呼びます。
And if both flips match, then you just throw them away.そして両方の投げが一致したら、それは捨ててしまいます。
Even if the coin is biased, as long as the flips are independent and the bias doesn't change, heads tails and tails heads are equally likely.コインに偏りがあっても、投げが独立で偏りが変わらなければ、表裏と裏表が出る確率は等しくなります。
So what's left is perfectly fair.だから残ったものは完全に公平なのです。
You just end up with a shorter sequence.ただ短い系列になるだけです。
Now NIST's technique is far more powerful, but the basic idea is similar.NISTの技術ははるかに強力ですが、基本的な考え方は似ています。
The Bell test certifies at least 820ベルテストは生の測定値に少なくとも820
bits worth of unpredictability in the raw measurements, and then using a mathematical technique called randomness extraction, the researchers concentrate that down to just 512 bits.ビット分の予測不可能性を認証し、そしてランダムネス抽出と呼ばれる数学的手法を使って、研究者たちはそれをわずか512ビットに凝縮します。
Every one of the measurements that we make contributes to every bit.私たちが行う測定の1つ1つが、すべてのビットに寄与します。
And unlike the random numbers that we've seen throughout the video, these aren't just difficult to predict.そして動画全体で見てきた乱数とは違って、これらは単に予測が難しいだけではありません。
Their unpredictability can actually be certified.その予測不可能性は実際に認証できるのです。
So this is the closest you can get to random.つまり、これがランダムに最も近いものなのです。
Albert Einstein, his argument was, God does not play dice with the universe.アルバート・アインシュタインの主張は、神は宇宙とサイコロ遊びをしない、というものでした。
That's this famous Einstein quote.それがこの有名なアインシュタインの言葉です。
And Einstein was wrong about that.そしてアインシュタインはそれについては間違っていました。
In fact, these experiments that we do here that show that really, you know, this predictable nature,実際、私たちがここで行うこれらの実験が示すのは、本当に、この予測可能な性質、
this kind of deterministic world view that we have in classical physics that Einstein espoused,アインシュタインが支持した古典物理学におけるこの種の決定論的な世界観は、
really is incompatible with quantum mechanics.量子力学とは本当に相容れないということです。
Yeah.はい。
So if God does play dice with the universe, then what do those dice look like?では、もし神が宇宙とサイコロ遊びをするなら、そのサイコロはどんな姿をしているのでしょうか?
And it's this experiment.それがこの実験なのです。
You know, this is like God's dice that we're throwing.これは私たちが振っている神のサイコロのようなものなのです。
This is the most random source of entropy you can generate.これは生成できる最もランダムなエントロピーの源です。
So God's dice are not loaded.つまり神のサイコロには細工がないのです。
God's dice are not loaded.神のサイコロには細工がないのです。
Exactly.その通りです。
Yeah.はい。
So this is something that you know nothing in the universe could have predicted in advance.つまりこれは、宇宙の何ものも事前に予測できなかったものなのです。
Together with the University of Colorado Boulder, NIST actually publishes this on random.colorado.edu,コロラド大学ボルダー校とともに、NISTは実際にこれをrandom.colorado.eduで公開しています、
along with the information that you need to trace and verify how the numbers were generated.その数字がどのように生成されたかを追跡し検証するために必要な情報とともに。
So you can go and use them if you want.だから、よければそれらを使ってください。
These numbers are then shared, and I can really use the the bits that are generated here to choose whether I'm wearing I don't know a green or a red sweater,これらの数字はその後共有され、ここで生成されたビットを本当に使って、例えば緑と赤どちらのセーターを着るかを選ぶことができます、
and I'll be using these entangled photons to to do so.そのためにこれらのもつれた光子を使うつもりです。
And I'm colorblind, so it'll look the same to me if you wear a red and green sweater.そして私は色盲なので、赤と緑のセーターを着られても私には同じに見えます。
But producing the randomness was really hard.でもこのランダム性を生み出すのは本当に大変でした。
It takes a lot of equipment.たくさんの装置が必要です。
You've seen that today.今日それを見ましたね。
We've figured out this process of how we actually interconnect and weave these different systems together and these different beacons together and sources of randomnessこれらの異なるシステム同士や異なるビーコン同士、そしてランダム性の源を実際に相互接続し織り合わせるこのプロセスを解明してきましたが
can kind of actually form a layer of additional security.それが一種の追加のセキュリティ層を形成できるのです。
So yeah, I guess the the thing that we hope to randomize is the internet.だから、ええ、私たちがランダム化したいのはインターネットだと思います。
That's awesome.それは素晴らしい。
That's my ultimate dream.それが私の究極の夢です。
Is you know, can we just make Everything more secure.つまり、すべてをもっと安全にできるか、ということです。
Okay, one last thing.さて、最後にもう一つ。
Last year we launched the official Veritasium trivia game.昨年、公式のVeritasiumトリビアゲームを発売しました。
It's called Elements of Truth.その名もエレメンツ・オブ・トゥルースです。
It's a game with two hundred questions about science and technology, but it's not just about getting the answer right.科学とテクノロジーに関する200問のゲームですが、ただ正解するだけではありません。
See, there's a confidence mechanic in the game where you have to put down a point between one and ten on your answer.実は、自分の答えに1から10までのポイントを賭けるという自信メカニクスがあるんです。
So even if you do get the question right, you may lose out on points if you're doubting yourself.だから、たとえ正解しても、自分を疑っていたらポイントを失うことがあるんです。
The team has been playtesting this when we get together, and it has been super fun.チームで集まるときにプレイテストしてきましたが、とても楽しかったです。
If you missed the Kickstarter, I'm so excited to announce that it's now available.Kickstarterを見逃した方へ、現在入手可能になったことをお知らせできてとても嬉しいです。
If you're interested, we put a link in the description to the Elements of Truth website.興味があれば、概要欄にエレメンツ・オブ・トゥルースのウェブサイトへのリンクを貼っています。
So thank you for supporting this project, and as always, thanks for watching.このプロジェクトを支援してくださりありがとうございます、そして例によってご視聴ありがとうございました。
And the way that it works is that now come up, come up here.そして仕組みとしては、今ここに来て、ここに来て。
No.いや。
I don't think I should die.死ぬべきじゃないと思う。
I don't think I should die.死ぬべきじゃないと思う。
I don't think I should die.死ぬべきじゃないと思う。
I'll be fine.大丈夫だよ。