Pseudorandom number generators | Computer Science | Khan Academy

  Рет қаралды 350,966

Khan Academy Labs

Khan Academy Labs

Күн бұрын

Пікірлер: 235
@DipperSlipper
@DipperSlipper 5 жыл бұрын
Great Video! I got here from Angela's Course.
@WaterQube
@WaterQube 5 жыл бұрын
Same
@BItencure
@BItencure 5 жыл бұрын
Me too! Nice to see some fellow students around!
@ajinkyadeshpande3992
@ajinkyadeshpande3992 5 жыл бұрын
Same..... !
@senzontsele8953
@senzontsele8953 4 жыл бұрын
Me 2
@kaustubhgarg9662
@kaustubhgarg9662 4 жыл бұрын
same
@ThandaTaco4505
@ThandaTaco4505 4 жыл бұрын
this video is trippy af.
@varunchelikani7891
@varunchelikani7891 5 ай бұрын
agreeded Man!!
@swapnilchaturvedi821
@swapnilchaturvedi821 4 жыл бұрын
Great video,Got its link from Angela's course
@mr.penguin2454
@mr.penguin2454 3 жыл бұрын
Same
@khansufyan3222
@khansufyan3222 3 жыл бұрын
Dr. Angela!
@sumabich721
@sumabich721 3 жыл бұрын
same
@wenTau-l6n
@wenTau-l6n Ай бұрын
man i got here from lesson of 2024
@TVVDINAKARAN
@TVVDINAKARAN 3 жыл бұрын
Damn this shit was taking me to the 90's vibe, it was wa more than a tutorial...
@sadijdhakal
@sadijdhakal 6 жыл бұрын
I felt like I watched those 1960s tutorial video. lol
@thanasisthanasistha
@thanasisthanasistha 9 ай бұрын
Great video! Ι 've got this link from Angela's course!
@Athenas_Realm_System
@Athenas_Realm_System 8 жыл бұрын
in cryptographically secure pseudo-random number generators such as the /dev/random and /dev/urandom on Unix machines, it constantly takes up new seeds to prevent anyone known the state of the generator at any one time fully. It usually uses stuff like block ciphers and hashes to take essentially random input like keystrokes, and hardware interrupt timing to continually shuffle the output to keep it as secure as possible for generating keys and stuff for encryption such as using a https connection. For CSPRNGs it is required to pass tests for statistical randomness as you wouldn't want to use a encryption key even for a one time pad that was a very simple number that wasn't random at all.
@kebekbutcher
@kebekbutcher 4 жыл бұрын
Don't think you are safe behind cryptography, but the more bits involved, the more secure exponentially... but with super computer that government can use, 1024bits encryptions is pretty safe probably 512bits is enough for the effort needed for what you are hiding, if you don't know how computer encryption works, I invite you to look for basic encryption videos about it. This video is only about RNG in computing... It has nothing to do with RNG in encryptions...
@SuperJosba
@SuperJosba 2 жыл бұрын
me too :)!
@shagunprasad4592
@shagunprasad4592 9 ай бұрын
this video literally reduces william stalling's entire sub section on PRNGs and TRNGs to a 6 minute video. absolutely mind blowing !!
@oatscurry
@oatscurry 5 жыл бұрын
I just realized that since this video is in a series, it's probable that Khan Academy defined "shifts" in an earlier video. I remember watching these last year and believe that this may be the case.
@Gersberms
@Gersberms Жыл бұрын
Came here to ask the same thing, "why is he talking about shifts?"
@ramakrishnakadiyala3014
@ramakrishnakadiyala3014 3 жыл бұрын
The background music felt like a thriller movie 😰
@Nico-ny2om
@Nico-ny2om 8 жыл бұрын
Quantum computers are coming, we're damned
@akkienergy
@akkienergy 2 ай бұрын
Got here from Angela's Python course. Great video indeed!
@mrrakeshmohansinghnegi248
@mrrakeshmohansinghnegi248 2 жыл бұрын
I like the cosmic horror vibes
@yalongli3993
@yalongli3993 4 жыл бұрын
Great to know the magic of random number generation!
@网于睿
@网于睿 3 жыл бұрын
what does the word "shift" mean in this video? "if Alice generates a truly random sequence of 20 shifts, it's equivalent to a uniform selection from the stack of all possible sequences of shifts."
@pankajthapaliya2336
@pankajthapaliya2336 3 жыл бұрын
Thank you khan academy ! got here while learning random module in python
@TheEgg185
@TheEgg185 6 жыл бұрын
4:12 what??? Shift? Pages? This part of the video made absolutely no sense.
@baatar
@baatar 5 жыл бұрын
Yeah, I was lost too.
@hugobarrazavizcarra482
@hugobarrazavizcarra482 5 жыл бұрын
@@baatar Explanation please.
@baatar
@baatar 5 жыл бұрын
@@hugobarrazavizcarra482 "If Alice generates a truly random sequence of 20 (shifts?)" No idea what he's saying here. 4:05
@seras.gulser6962
@seras.gulser6962 5 жыл бұрын
I think "shift" means the number times she throws the dice to make her sequence. Dice here is a dice-26 dice, hence 26 to the power of 20.
@PvblivsAelivs
@PvblivsAelivs 4 жыл бұрын
It makes more sense if you have seen some of the other videos. He is talking about a stream cipher where each letter is shifted a number of places in the alphabet to produce the encrypted message. The pages refer to a stack in which each page refers to a possible sequence of shifts for each of 20 letters in a message. Admittedly, the videos don't stand very well independently.
@mkerm3875
@mkerm3875 5 жыл бұрын
whats with the song in the background bro its just math math itn't scary ... well it is but still
@agstechnicalsupport
@agstechnicalsupport 6 жыл бұрын
Great video explaining random and pseudo random number generation.
@xXsniperleoXx
@xXsniperleoXx 3 жыл бұрын
we call things random because we don't see any links, that doesn't mean there necessarily aren't. maybe randomness is subjective
@ryzenofficial4700
@ryzenofficial4700 Жыл бұрын
I'm here because of Dr. Angela Yu's web development course on udemy.
@yuyhero
@yuyhero 3 жыл бұрын
This is good stuff. Not even being taught about this on my CS class
@lucacommonjay7894
@lucacommonjay7894 5 жыл бұрын
I like this video as much as Kanye loves Kanye
@abdullahAboelkhair
@abdullahAboelkhair 2 жыл бұрын
Mindblowing!
@indiansoftwareengineer4899
@indiansoftwareengineer4899 5 жыл бұрын
Nice video, truly educational. Love you Khan academy.
@ishaanbhalla396
@ishaanbhalla396 3 жыл бұрын
damn I feel like doing shrooms and watching this again
@raycipher
@raycipher Жыл бұрын
same
@patricial.321
@patricial.321 2 жыл бұрын
You guys just saved my presentation due in 4 days
@halimaa213
@halimaa213 5 жыл бұрын
This video was uncomfortable. But I had to watch as it was recommended by a javascript course I'm taking. Thanks!
@oatscurry
@oatscurry 5 жыл бұрын
lol Dr. Angela Yu, perchance?
@mertcankose5079
@mertcankose5079 5 жыл бұрын
@@oatscurry yeees :)
@MrPicklepod
@MrPicklepod 4 жыл бұрын
I didn't think this video was going to be what it is
@RichardinSA
@RichardinSA 3 ай бұрын
Like woah man... thanks for the trip!
@atikshaikh3121
@atikshaikh3121 4 жыл бұрын
Got here from Angela's Course
@mr.penguin2454
@mr.penguin2454 3 жыл бұрын
Same
@atikshaikh3121
@atikshaikh3121 3 жыл бұрын
@@mr.penguin2454 yes
@manikandand4439
@manikandand4439 3 жыл бұрын
👐👐me
@SHaKoB0_0
@SHaKoB0_0 2 жыл бұрын
holy shit never knew that I needed this video that much
@ThakurCoder77
@ThakurCoder77 10 ай бұрын
This video is educational and trippy at the same time😵‍💫
@MotoMoto-ym3cp
@MotoMoto-ym3cp 11 ай бұрын
The examples for true randomness given in the beginning of the video are not rally randomness, but chaotic distributions. Waves, pepples at the beach, white noice are not indeterministic. As part of the macroscopic world they are deterministic albeit not computable. All true randomness comes only from quantum effects like nuclear decay. Only the quantum space provides randomness. The rest is either pseurdorandom or chaotic but deterministic
@francisdeleon4672
@francisdeleon4672 2 жыл бұрын
great production!
@skropp9339
@skropp9339 6 жыл бұрын
While word size dependence is true for linear congruential generators, there are plenty of random number generators whose period is independent of the word size; as an example, the mersenne generator or R250. What you are saying is accurate but it comes across as if you are saying that LCG is the only algorithm.
@serious6037
@serious6037 2 жыл бұрын
Why is this so mystical lmao
@Obliviouse27
@Obliviouse27 6 ай бұрын
So from what I understand by using the 3 middle numbers after doing 2 /3 actions and repeating we are saving ourselves some time to find matching sequence. While multiplying these gets you around 10000 unites of numbers which is not as big as million it some how saves time and I suppose makes the probability of matching the numbers fairly moderated.
@kritisingh3194
@kritisingh3194 3 жыл бұрын
The end scared me, jeez. But hey, great video! :)
@LatelierdArmand
@LatelierdArmand 4 ай бұрын
trippy edit love it
@tapiiee
@tapiiee 8 ай бұрын
I always wondered how Minecraft seeds worked, this was really interesting
@yyin3061
@yyin3061 2 ай бұрын
Great video! Ι 've got this link from Angela's course! : )
@ShuAbLe
@ShuAbLe 2 жыл бұрын
Wow, that is a cliff hanger ending!
@novanoskillz4151
@novanoskillz4151 4 жыл бұрын
Angela sent me here!
@mr.penguin2454
@mr.penguin2454 3 жыл бұрын
Same
@codervipersan4321
@codervipersan4321 3 жыл бұрын
I also from angela yu course
@sunanpatel6732
@sunanpatel6732 3 жыл бұрын
Even me!
@nerfking1761
@nerfking1761 8 ай бұрын
Amazing video! Really helped me to understand random number generators. Got reference from Angela Yu’s course on udemy
@michaelmueller5211
@michaelmueller5211 3 жыл бұрын
so much clearer! ty! 😇
@B44-y5i
@B44-y5i 3 жыл бұрын
why was this video so scary
@jonrutherford6852
@jonrutherford6852 7 ай бұрын
Very nice exposition. I did, though, get a chuckle from the bike-lock analogy. As thousands of cyclists know by now, a lock such as the one shown is not safe even for eight seconds, let alone eight hours. (Hint: chain cutter.)
@JeffPittman
@JeffPittman 4 жыл бұрын
DNA @ 3:04
@prashoonbhattacharjee8211
@prashoonbhattacharjee8211 4 жыл бұрын
Good tutorial👍!!
@AiSings163
@AiSings163 Жыл бұрын
Well We are Living in a world where all the possibilities of guessing a pseudorandom is no more securty with quantam computing its now possible...⭐⭐
@shahryarhabibi7187
@shahryarhabibi7187 3 жыл бұрын
thanks
@openroomxyz
@openroomxyz 3 жыл бұрын
Love it
@mathlead956
@mathlead956 2 жыл бұрын
What if you make random numbers from nonrepeating things like Penrose tilings
@Mecharnie_Dobbs
@Mecharnie_Dobbs 2 жыл бұрын
Very pretty
@alexhichamk6630
@alexhichamk6630 6 ай бұрын
D.Angela is the reason
@hotmandead1
@hotmandead1 7 жыл бұрын
I got here from a book on C programming
@anwarulbashirshuaib5673
@anwarulbashirshuaib5673 4 жыл бұрын
which book?
@sumabich721
@sumabich721 3 жыл бұрын
Angela brought me here
@pradyumnakubear5366
@pradyumnakubear5366 4 жыл бұрын
Nice
@zacharysun01
@zacharysun01 5 ай бұрын
Joe Grand has a video where he uses the logic of Pseudorandom number generators to crack open a 3 million dollar crypto wallet.
@TheNetflixGamer
@TheNetflixGamer 3 жыл бұрын
Okay okay sick
@pkpcmu
@pkpcmu 4 жыл бұрын
that dong noise in last two minutes of this ruined it for me - sheer noise!
@will-se7wj
@will-se7wj 2 жыл бұрын
the music is so creepy lol
@Stormbolt_1
@Stormbolt_1 2 ай бұрын
This makes me feel like I'm watching a Dharma video from LOST
@majorramsey3k
@majorramsey3k 7 жыл бұрын
I used 41 and got 4116814624384470560250062538447056025006253844etc Although I ended up with a repeating sequence, I did not encounter the seed of 41 repeating itself. Did I do something wrong?
@lucianbicsi1636
@lucianbicsi1636 6 жыл бұрын
No. It doesn't have to start repeating at the initial seed.
@majorramsey3k
@majorramsey3k 6 жыл бұрын
Thanks!
@sbhtkapps364
@sbhtkapps364 6 жыл бұрын
All it takes for the sequence to repeate itself is that one seed that has already been used show up again and then the sequence will start to repeat itself, that's why he said that for 2 digit it can go at most to 100 and not always
@noorameera26
@noorameera26 3 жыл бұрын
@@lucianbicsi1636 thank you too!
@yaman223
@yaman223 Ай бұрын
This is how we build lottery machines. 😉
@blackhole1617
@blackhole1617 Жыл бұрын
I'm here from Angel's course
@GFD_VIDEOS
@GFD_VIDEOS Жыл бұрын
All casinos both online and land based use PRNG’s to insure profitability at the expense of gamblers being fooled to believe that they are actually playing !
@bengalbaby6118
@bengalbaby6118 4 жыл бұрын
Isn't Bitcoin Blockchain set up something like this? Where to find a key, or a matching key, numbers must be ran, and ran, and ran, to get what the miner is looking for? Or they have to keep running numbers for the permission to claim that posting? Just curious.
@samfield4114
@samfield4114 3 жыл бұрын
No
@followrajah7743
@followrajah7743 9 ай бұрын
Dr Angela Yu brought me here
@shreyasahu481
@shreyasahu481 4 жыл бұрын
Got scared and closed the tab.
@ponyatnoeit169
@ponyatnoeit169 3 жыл бұрын
Интересно😵
@luls9000
@luls9000 5 жыл бұрын
What happens at 2:28 ??? The second output is 529, not 587... Wtf???
@subhamrai4908
@subhamrai4908 3 жыл бұрын
Who is here from Angela's course? 😂
@manikandand4439
@manikandand4439 3 жыл бұрын
Me 👐
@uzairali7420
@uzairali7420 3 жыл бұрын
@@manikandand4439 i download this course from random website this course is old for me but its free there is no bootstrap 5 or flexbox
@seckomatikreloaded5283
@seckomatikreloaded5283 2 жыл бұрын
This video is creepy, like one of those Dharma Initiative orientation videos from LOST
@RadarCubed
@RadarCubed Жыл бұрын
i was high watching this and it gave me so much anxiety
@youtubeshortsmix2356
@youtubeshortsmix2356 Жыл бұрын
from udemy
@chandanchandu4914
@chandanchandu4914 5 ай бұрын
Nan Anthu obirayan kalaa kee hogidhee 🥴
@ghanisthsingh347
@ghanisthsingh347 3 ай бұрын
I see, a lot of us are already here from Angela's course 😂😂😂
@ludwig8384
@ludwig8384 6 ай бұрын
Angela Yu brought me here.
@jsc3417
@jsc3417 3 жыл бұрын
I dump plenty seeds into the toilet each day.
@mdraihan1067
@mdraihan1067 6 жыл бұрын
plzz stop the background sound
@pineapplewhatever5906
@pineapplewhatever5906 2 жыл бұрын
1:12 I don't think machines are deterministic. I was running a program that backed up to a file each minute. I loaded the most recent backup into it. Power went off. Tried loading the backup again. It was BLANK. Inspected the backup with a hex editor: It was all zeroes. Inspected the code of the program: The program could not have written the zero byte into the file. Clearly, if the machine were deterministic, this could not have happened.
@santaclaus008
@santaclaus008 Жыл бұрын
lol
@pineapplewhatever5906
@pineapplewhatever5906 Жыл бұрын
@@santaclaus008 Ok then. You explain it.
@Deathgod11111
@Deathgod11111 Жыл бұрын
I cant understand anything, am i dumb?
@shubham_srt
@shubham_srt Жыл бұрын
prolly
@TheEgg185
@TheEgg185 6 жыл бұрын
For every, I don't know, 10,000 calculations, why don't we start taking MORE than just the middle 3 digits and make THAT be the new seed??? Problem solved, no?
@singerbabe82
@singerbabe82 5 жыл бұрын
i hate the background music
@neriyacohen7805
@neriyacohen7805 2 жыл бұрын
Are you nuts? Worst video of khan. The noise drived me crazy. Why do it for knowledge seekers( ADHD aside?) If you dont remove the noise at the very least add scratching noises,screams and breaking glass
Almost All Random Numbers Are Actually Fake
19:38
Thoughty2
Рет қаралды 515 М.
黑天使只对C罗有感觉#short #angel #clown
00:39
Super Beauty team
Рет қаралды 9 МЛН
What is NOT Random?
10:00
Veritasium
Рет қаралды 8 МЛН
Public key cryptography: What is it? | Computer Science | Khan Academy
4:32
NMCS4ALL: Random number generators
20:10
Dave Ackley
Рет қаралды 72 М.
Why is this number everywhere?
23:51
Veritasium
Рет қаралды 9 МЛН
How To Predict Random Numbers Generated By A Computer
13:54
PwnFunction
Рет қаралды 558 М.
Coding Math: Episode 51 - Pseudo Random Number Generators Part I
13:59
Random Numbers - Numberphile
11:39
Numberphile
Рет қаралды 1,1 МЛН
Random Fibonacci Numbers - Numberphile
10:36
Numberphile
Рет қаралды 448 М.