How computers generate RANDOMNESS from math

  Рет қаралды 64,467

Tony Zhang

Tony Zhang

Күн бұрын

Пікірлер: 61
@agrimpuriya2585
@agrimpuriya2585 2 жыл бұрын
Absolutely love your video. I was coding in Python, and i was using "random" library when I suddenly realised "How is a computer, the most pattern based machine in the world, able to generate randomness?".
@yOkay_
@yOkay_ 2 жыл бұрын
@@keurh475 so let's program in rust
@egaLwie.
@egaLwie. Жыл бұрын
​@@yOkay_ no let's do it in chicken
@nemiw4429
@nemiw4429 Жыл бұрын
Same. 0:31 Im watching the video, never looked into it, but Im pretty sure its impossible. 1:07 ok, thought so. U cant explain a machine "give me random".
@KarTandir
@KarTandir Жыл бұрын
i was studying wave function of an electron an suddenly asked myself the same question lol
@user-rm2qj2jh4l
@user-rm2qj2jh4l Жыл бұрын
This is such a good, brief yet detailed explanation! Thank you!
@christophertadeo6120
@christophertadeo6120 2 жыл бұрын
Pseudo random is what we call it in computer science...
@ThankYouESM
@ThankYouESM 3 жыл бұрын
I thought it was always from current milliseconds by 32 decimal places.
@king_james_official
@king_james_official 2 жыл бұрын
depends what algorithm the software is using. a lot of time it combines time, mouse movement, cpu load, ram usage, maybe even microphone input
@RoBoKilZ
@RoBoKilZ 2 ай бұрын
Fast, efficient, accurate, great vid, good content, well executed, ty
@ThankYouESM
@ThankYouESM 3 жыл бұрын
I'm trying to find the type that can create organic art very fast... hopefully each out of a billion numbers like perlin noise combined with mandelbrot
@YoungFellow
@YoungFellow Ай бұрын
Very nice explanation. Thanks Tony!
@MrLottoLife
@MrLottoLife 2 жыл бұрын
Which means slots are not unpredictable and random. I've been studying slots and patterns and I've noticed patterns that tend to win even amongst all the "randomness."
@chihuhahuana4863
@chihuhahuana4863 3 ай бұрын
oh god
@MR_GREEN1337
@MR_GREEN1337 2 жыл бұрын
Mate, you're incredibly good! Thanks a lot and wishing you the best!
@Ish21823
@Ish21823 Жыл бұрын
nah
@mohammadjadallah9813
@mohammadjadallah9813 3 жыл бұрын
Okay… but where do you get the seeds from? You’re just saying “pick a number”, isn’t that basically random?
@TonyZhang01
@TonyZhang01 3 жыл бұрын
Yeah so the only way to do that is getting it from somewhere else (time of day, temperature, increasing the seed by one each time, etc). Or you can just use the same seed and continue with the sequence of numbers
@talkingmurga5554
@talkingmurga5554 Жыл бұрын
Yeah, generally in multiple programs the seed is set by the user. In other cases it is taken from time or/and hardware data.
@KarenEaker
@KarenEaker Ай бұрын
I would use a method that leverages "human randomness", such as a value calculated from a combination of the mouse position, time of activity, and number of mouse clicks multipled by 3/4 of the cpu temp.
@ibrahimsoukak437
@ibrahimsoukak437 Ай бұрын
That was my question too. I think I need to try that algorithm myself to understand it better
@kkalyan5569
@kkalyan5569 3 жыл бұрын
Hey,nice explanation and i really appreciate your work. Nice rendering of manim ,it would be really helpful if you can share the manim file for the animations in this video.
@TonyZhang01
@TonyZhang01 3 жыл бұрын
Here it is! gist.github.com/Tony1324/7ca1f41b8ab79847f4cd6e77619acab6
@amarboldbatzorig7313
@amarboldbatzorig7313 6 ай бұрын
Great video. I hope you make more!
@Lea-js9jw
@Lea-js9jw 5 ай бұрын
Oogwey was right all along
@BrokenG-String
@BrokenG-String 2 жыл бұрын
For more secure randomly generated numbers, other than changing the seed, is it possible/wise to also change the mathematical equation every cycle?
@TonyZhang01
@TonyZhang01 2 жыл бұрын
I’m pretty sure that the numbers for the algorithm itself are chosen specifically to work well, and it’s pretty easy to accidentally use a equation that just gives the same number over and over. Also just choosing the seed means that you will have an equal distribution of the numbers
@JumpingJack-w2l
@JumpingJack-w2l 6 ай бұрын
Length of random data you feed in determines true randomness of the output. You can reduce true randomness by choosing inappropriate algorithms but can't increase it. If there is desire for more secure random numbers, I think focus should be on getting more randomness from some entropy source(s), while algorithms also important, but they can't do what they can't do, i.e. provide true randomness from nowhere.
@iliapopovich
@iliapopovich Жыл бұрын
Thanks for the video, It's a very good example, but the simplest way in my opinion is using logic gates output from flip flops.
@playful1
@playful1 Жыл бұрын
Lotto results seem to mention Random number generator. Whereas they always are Specific number generators.
@matiasvlevi6647
@matiasvlevi6647 3 жыл бұрын
I like the animations very well explained.
@prodoxel9578
@prodoxel9578 3 жыл бұрын
Thanks for the information!
@keki4578
@keki4578 Ай бұрын
I lost some hairs trying to think a way to program randomness. Turns out, there is no way. underwhelming, sad, distraught, depressed, furious Thanks for the video
@error404m
@error404m 22 күн бұрын
Factor the number of hairs lost into the generator.
@keki4578
@keki4578 12 күн бұрын
@ factoring my nutz
@alessandrorossi1294
@alessandrorossi1294 2 жыл бұрын
At 3:01 you say Xorshift is “more robust” than a Linear Congruential Generator without defining in what way that you claim Xorshift is “more robust”.
@TonyZhang01
@TonyZhang01 2 жыл бұрын
That's fair, I guess at the time I just meant a more widely used and more complex algorithm
@alessandrorossi1294
@alessandrorossi1294 2 жыл бұрын
@@TonyZhang01 ok. robustness is defined by asymptotic analysis on an algorithm and is not a synonym for "popular" or "good". it is a property that will be robust with respect to some variation that winds up not effecting the property. this is important since usually some imperfection, randomness, or noise in your initial conditions is considered likely, so you want a property of an algorithm to be "robust" against imperfections in your initial assumptions, as opposed to being "highly sensitive to initial conditions". however for a pseudo-random number generated you don't want the numbers produced to be "robust" you would prefer them to be highly sensitive to initial conditions because you want them to be hard to predict or to say anything else. the only property of a pseudo-random number generator you would want to be robust is its ability to pass statistical randomness tests over multiple trials. check out martin lof randomness
@Bonjemus
@Bonjemus 3 жыл бұрын
Nice explanation!
@chandmalsuthar3129
@chandmalsuthar3129 8 ай бұрын
Hello sir (91 club colour predition) a game janrate 0 to 9 rendom number computer method Is it possible to guess what the next number will be?
@objectivecompleted-9474
@objectivecompleted-9474 7 ай бұрын
Random numbers: Gargoogolchime = 10^2,000 Gogolbong = 10^50,000,000 Guppyminutia = 10^-20 Guppyminex = 10^-10^20 Guppychunk = 10^15
@utarajat
@utarajat Жыл бұрын
I'm new to programming. So when we use the random() method in python how is the seed determined there?
@thekarotte1625
@thekarotte1625 9 ай бұрын
Very good explanation, thanks.
@wilfriedkamdoum
@wilfriedkamdoum Жыл бұрын
The Xorshift is more comprehensive
@nasrogalili
@nasrogalili 2 жыл бұрын
Thank you so much for explaining! Can you please tell me what's the name of the texts transition? Like the effect name..
@TonyZhang01
@TonyZhang01 2 жыл бұрын
I used www.manim.community, the same animation thing used by 3 blue 1 brown. I actually made a whole video about it: kzbin.info/www/bejne/hYC7npV4Yrqko8U
@classic6288
@classic6288 4 ай бұрын
Is this how sols rng works
@logicmatthewlearning
@logicmatthewlearning 7 ай бұрын
Thanks! I now understand xor generator :D
@pwjaiter6277
@pwjaiter6277 Жыл бұрын
It always annoyed me in c hoe relatively hard is is to get a random number
@tylerwatrouse8602
@tylerwatrouse8602 2 жыл бұрын
When I realized this concept it kinda led to understand the idea of 'consequenstialism' or whatever. I geuss I believe in destiny
@jacc7203
@jacc7203 2 жыл бұрын
Thats determinism. Consequentialism is the idea that what makes an action wrong is its consequences. For example, a consequentialist would say that punching someone is bad because it causes them pain.
@tylerwatrouse8602
@tylerwatrouse8602 2 жыл бұрын
@@jacc7203 oh I see interesting xD. I geuss I'm both! Hope your doing good wherever you come from
@jacc7203
@jacc7203 2 жыл бұрын
@@tylerwatrouse8602 you too
@Yash-Gaikwad
@Yash-Gaikwad 2 жыл бұрын
Nothing is random but pseudo random in this world.
@arvin536
@arvin536 3 жыл бұрын
Underrated
@RiteshNEVERUNIFORM
@RiteshNEVERUNIFORM 3 жыл бұрын
5:02 I wish you were female youtuber so I could take it. 😢
@Momoyon
@Momoyon 3 жыл бұрын
What
@Jamesdavey358
@Jamesdavey358 2 жыл бұрын
Take what? Why does he have to be a woman? Whats at 5:02 ? Too many questions
@coronavirus3595
@coronavirus3595 Жыл бұрын
Corny
@Yaqoub-w8i
@Yaqoub-w8i Жыл бұрын
Learn English. LEARNNNNNN ENGLISHHHH!!!!
NMCS4ALL: Random number generators
20:10
Dave Ackley
Рет қаралды 72 М.
How To Predict Random Numbers Generated By A Computer
13:54
PwnFunction
Рет қаралды 564 М.
Маусымашар-2023 / Гала-концерт / АТУ қоштасу
1:27:35
Jaidarman OFFICIAL / JCI
Рет қаралды 390 М.
UFC 287 : Перейра VS Адесанья 2
6:02
Setanta Sports UFC
Рет қаралды 486 М.
번쩍번쩍 거리는 입
0:32
승비니 Seungbini
Рет қаралды 182 МЛН
Random Numbers - Numberphile
11:39
Numberphile
Рет қаралды 1,1 МЛН
Almost All Random Numbers Are Actually Fake
19:38
Thoughty2
Рет қаралды 517 М.
True Random Numbers - Computerphile
12:16
Computerphile
Рет қаралды 131 М.
How do computers read code?
12:01
Frame of Essence
Рет қаралды 3,1 МЛН
How Do Computers Remember?
19:32
Sebastian Lague
Рет қаралды 6 МЛН
I built my own 16-Bit CPU in Excel
15:45
Inkbox
Рет қаралды 1,6 МЛН
How Minecraft ACTUALLY Works 💎⛏️
46:02
Alan Zucconi
Рет қаралды 1,6 МЛН
Randomness is calculated - Linear Congruential Generators Explained
10:48
how does “random” work?
4:42
Low Level
Рет қаралды 67 М.
Маусымашар-2023 / Гала-концерт / АТУ қоштасу
1:27:35
Jaidarman OFFICIAL / JCI
Рет қаралды 390 М.