Random Number Generator - F-J's Physics - Video167

  Рет қаралды 1,918

Anthony Francis-Jones

Anthony Francis-Jones

Күн бұрын

Building and using a 'Blinkenlights Supercomputer' to generate random numbers. It's a rather beautiful looking piece of electronics too!
Please consider supporting my work by buying me a coffee at
www.buymeacoff...
Very many thanks, F-J

Пікірлер: 28
@AnthonyFrancisJones
@AnthonyFrancisJones Жыл бұрын
Please consider supporting my work by buying me a coffee at www.buymeacoffee.com/francisjonesa Very many thanks, F-J
@Jawst
@Jawst Жыл бұрын
❤ big clive!! These supercomputers are brilliant for soldering practice! I love making my own basic led string garden lights with 0.4mm enamelled wire and groups of 3 leds dipped in ABS/acetone slurry! Usually, last about 8 months - a year before they begin to fail from corrosion 😂 I've seen that lava lamp code generator for security, and it is a brilliant idea!!! Super randomness ❤
@AnthonyFrancisJones
@AnthonyFrancisJones Жыл бұрын
Excellent - yes Big Clive is brilliant - I don't think he did anything with his 'supercomputer' though he did show the fail rate of cheap LEDs - I wanted to take things a bit further! Tom Scott of course did the video on Cloudflare's lava lamps. Garden light idea sounds brilliant! You will have to post a KZbin short showing them to us and post the link here!
@radekhn
@radekhn 4 ай бұрын
Hello Anthony, I have two points to your video. First point, the behaviour of the blinken lights supercomputer is not random. I know it sounds strange, but it is not random. The correct word to describe it is "chaos" the LEDs behave according to the chaos theory. The second point goes back to the question why not use one resistor instead of many. Actually that is great, great question. All the LEDs are coupled via power. When you have many resistors, the coupling is very weak. Using one resistor instead of many will open two questions. 1. when majority LEDs are off, the few shining got all the current. You can "overcurrent" them and burn. 2. Having only one resistor means, that now the LEDs are more closely and strongly coupled. So there should be visible tendency to resynchronise.
@AnthonyFrancisJones
@AnthonyFrancisJones 4 ай бұрын
Radek, thanks for this. Interesting what you say. I guess it is chaotic as the there is a limited) though massive number of outcomes that are bounded within limits rather than being capable of any outcome. I am working on a chaos video at the moment but I cannot get my analogue electronics to perform the correct differential equation integrations to show the Lorenz Attractor or similar. I will get there at some point I hope! LEDs, I did not realise it would affect coupling and therefore synchronisation. That's interesting! I realise that with multiple resistors the current through any LED should be fairly fixed when it is on obviously assuming a much lower internal resistance of the power supply! Thanks for your interesting comments and for watching. Hope you will enjoy some of the other videos too!
@radekhn
@radekhn 4 ай бұрын
@@AnthonyFrancisJones , yes, the Lorenz butterfly comes to my mind when I was writing about chaos. There is schematic he used, and I found it is also in The Art of Electronics the X Chapters, page 358. However you need an MPY634 or similar, and two of them. It is analog multiplier. With that re-synchronisation of blinking LEDs, it is my prediction based on the fact that blinking LED is an oscillator. When you find a way how to couple them strongly enough they must synchronise by definition. There is a nice video on YT somewhere, I guess by Veritasium or someone, and there an mechanical motronomes are used as oscillators. They behave exactly like the blinking LEDs and shortly desynchronised. Then same situation but the metronomes were on hanging desk, which could move, and by the coupling of that desk they synchronised.
@radekhn
@radekhn 4 ай бұрын
@@AnthonyFrancisJones , a note to randomness a chaos. By my amateur understanding. Random system is a such system, where, even if you know all previous states, you can't predict next state of the system. Chaotic system is a such, when with a little knowledge about past you can very successfully predict next state. However the more to the future you are trying to predict, the less success and bigger error you get. Typical chaotic system is 3 body problem. Or on steroids, movement of bodies in Solar system. And chaotic system do not need to have attractor.
@AnthonyFrancisJones
@AnthonyFrancisJones 4 ай бұрын
Thanks Radek. Yes my chaos circuit will be like Horowitz and Hills. The book of theirs I bought when I was at school predated the chaos chapter addition! I am sure I have made a simple mistake or solder bridge in my circuit but it is sensitive to initial conditions by not working! I remember the issue of clocks synchronising on a wall and also remember the paper on synchronising metronomes. I think it has been much copied on KZbin. I think you may well be right about the LEDs - I will have to try a circuit. I do have one that has lots of LEDs in a cube with only one current limiting resistor and have not yet noticed synchronisation. I think they are so cheaply made that they may well synchronise and then immediately go out of sync again due to differences in their manufacture. Al interesting stuff!
@AnthonyFrancisJones
@AnthonyFrancisJones 4 ай бұрын
I think you have got it just right there so thanks for this. I am glad that the video has resulted in such interesting discussions.
@simongarlinge3669
@simongarlinge3669 6 ай бұрын
Hi, Love this idea! Could you tell me where you got the LEDs. Thanks!
@AnthonyFrancisJones
@AnthonyFrancisJones 6 ай бұрын
Simon, you can get LEDs in packs of 100 or even 1000 really cheaply from China. They may not be the very best quality but fine for projects like this. Same with the resistors too. Think I got mine from Ali Express or similar. They were only a few pounds. I still have plenty left over for other projects. Remember to buy the flashing ones! Let us know how you get on and thanks for watching!
@xxqq5719
@xxqq5719 10 ай бұрын
Is it random - read the values into a computer like a Pi and run rngtest or Dieharder on them. If you sampled the LEDs very quickly the values would be close together - not random. If you sampled them once a year they would be random because the variations between LEDs would have an effect. Happy days watching a PDP8, a proper computer with switches and lights on the front (and magnetic core memory poking out the back). Presumably the lights indicated data and address bus values, and the operators could read binary.
@AnthonyFrancisJones
@AnthonyFrancisJones 10 ай бұрын
Thanks for that and a great story! I remember using a mainframe and a dir command would enable you to hear the hard disk heads moving in the room next door! As you have picked up I am really suggesting the idea of randomness here - I have not statistically tested it! BTW I must do a video on magnetic core memory soon. I have quite a few examples including a full cubic core. I guess you have seen this video of mine? kzbin.info/www/bejne/jXOrlYGmdqhqjpY Thanks again for watching and an interesting comment.
@fabianmerki4222
@fabianmerki4222 10 ай бұрын
rnd() { return 42; } is a random number, but it's not cryptographically secure pseudorandom number generator... same with your light, the patterns are clearly repeating. maybe when you snapshot it only every hour, then you may have a good distribution...
@AnthonyFrancisJones
@AnthonyFrancisJones 10 ай бұрын
Interesting. Each LED is wholly independent of each other one and will never have its timer made in exactly the same way so I struggle to see what the pattern repetition could be driven by. Granted snapshots that are temporally close together will look the same but you have got me thinking if I am missing something here. It reminds me of the rack of lava lamps that are all on at the same time but very divergent over a shortish period of time which are used to generate random numbers. Thanks for watching and taking the time to comment too.
@fabianmerki4222
@fabianmerki4222 10 ай бұрын
they flash with a similar but not identical frequency which breaks your randomness over short time frames. you probably can predict the next number, using the averaged frequency.
@AnthonyFrancisJones
@AnthonyFrancisJones 10 ай бұрын
Yes, I am sure you are right there. A bit like my lava lamp example (Tom Scott did a video on that I think) one does have to wait a bit and in the case of mine give a reasonable time between each sample. However, all of this said the idea of it generating random numbers wasa only a thought! I guess if it really did someone would have built one by now!
@pdrg
@pdrg 10 ай бұрын
Fun! But is that actually random? ;-)
@AnthonyFrancisJones
@AnthonyFrancisJones 10 ай бұрын
Very good question - not easy to justify but I guess if left for long enough it is not going to repeat exactly the same sequence in order for a very very long time! More a case of me finding a use for this 'toy' as it were!
@gilbertojunqueira314
@gilbertojunqueira314 10 ай бұрын
Not only the phase difference but also the temperature will also add some randomness.
@AnthonyFrancisJones
@AnthonyFrancisJones 10 ай бұрын
Yes it will, you are right!
@MichaelKingsfordGray
@MichaelKingsfordGray 10 ай бұрын
Thay are NOT random.
@AnthonyFrancisJones
@AnthonyFrancisJones 10 ай бұрын
Michael, you may well be right but I put the challenge out there to anyone to calculate what the pattern might be after, say, 24 hours of run time and in similar steps of time thereafter. I think there are just so many variables that come into play. Let me know if you come up with anything to disprove the possible random nature of this over larger time spacings. I would be really interested to see. As an aside the LEDs often fail off or on (no longer flashing) and I am not sure I can predict that either! Thanks for watching and taking the time to comment.
@whig01
@whig01 7 ай бұрын
If you could know the exact position and momentum of everything then nothing is random.
@AnthonyFrancisJones
@AnthonyFrancisJones 7 ай бұрын
Yes, shame heisenberg get in the way!
@whig01
@whig01 7 ай бұрын
@@AnthonyFrancisJonesRight. Only God can know.
Seven Segment Display - World's Biggest?! - F-J's Physics - Video 166
14:44
Anthony Francis-Jones
Рет қаралды 733
Have you ever seen soldering THIS close?
9:53
Robert Feranec
Рет қаралды 337 М.
Как мы играем в игры 😂
00:20
МЯТНАЯ ФАНТА
Рет қаралды 2,3 МЛН
小丑妹妹插队被妈妈教训!#小丑#路飞#家庭#搞笑
00:12
家庭搞笑日记
Рет қаралды 36 МЛН
Fake watermelon by Secret Vlog
00:16
Secret Vlog
Рет қаралды 16 МЛН
Or is Harriet Quinn good? #cosplay#joker #Harriet Quinn
00:20
佐助与鸣人
Рет қаралды 60 МЛН
Aluminium Foil Ball Challenge - F-J's Physics - Video 193
16:18
Anthony Francis-Jones
Рет қаралды 476
Magnetic Core Memory Demonstrated (Part 2) - F-J's Physics - Video 183
16:08
How 3 Phase Power works: why 3 phases?
14:41
The Engineering Mindset
Рет қаралды 1 МЛН
Electron Optics - F-J's Physics - Video 135
9:33
Anthony Francis-Jones
Рет қаралды 440
Uranium Glass - F-J's Physics - Video 190
7:35
Anthony Francis-Jones
Рет қаралды 536
Electronic Leibniz Wheel Mechanical Calculator - F-J's Physics - Video 189
15:13
The Genius Behind the Quantum Navigation Breakthrough
20:47
Dr Ben Miles
Рет қаралды 772 М.
Lobe Pump - F-J's Physics - Video 191
11:39
Anthony Francis-Jones
Рет қаралды 343
Your USB-C Cable probably SUCKS! Sooo is that Bad?
10:54
GreatScott!
Рет қаралды 715 М.
Как мы играем в игры 😂
00:20
МЯТНАЯ ФАНТА
Рет қаралды 2,3 МЛН