Pseudo Random Numbers from a Linear Feedback Shift Register

แชร์
ฝัง
  • เผยแพร่เมื่อ 17 มิ.ย. 2024
  • If we had an infinitely long list of random ones and zeros, we could generate a random number by jumping to an arbitrary spot on that list and reading as many bits as we need. We can't store an infinitely long list of ones and zeros or even one that's long enough to seem infinite. What we can do is generate an incredibly long list using a linear feedback shift register.
    Timestamps
    00:00 | Intro
    00:15 | Tarnoff's second program...ever
    01:11 | Using tremendously long sequences to hide deterministic behavior
    02:40 | Using a linear feedback shift register to simulate storing a sequence
    02:51 | Review of linear feedback shift registers
    04:26 | Reasons to use an LFSR to generate pseudo random numbers
    07:01 | A 15-bit pseudo random sequence from an LFSR
    11:16 | A 255-bit pseudo random sequence from an LFSR
    Hashtags
    #prng #lfsr #randomnumbers

ความคิดเห็น • 12

  • @romagnolirojas10
    @romagnolirojas10 ปีที่แล้ว +3

    this guy is a saint.. so much effort into this channel and it's all free. Thank you sir

  • @Strebezhev
    @Strebezhev ปีที่แล้ว +2

    Thank you very much for your explanation! It gives me a powerful background for understanding VHDL coding. I believe your channel should have a lot more followers! You're absolutely great!

    • @Intermation
      @Intermation  ปีที่แล้ว +1

      It's been a long time since I've programed in VHDL, but I can definitely see how this could be a nice short VHDL project.

  • @AndrewCodeDev
    @AndrewCodeDev ปีที่แล้ว

    This is such a great channel. I appreciate how you incorporate your personal stories without distracting from the content. I'm really enjoying the content - keep up the good work!

  • @user-xd2vi9oh2t
    @user-xd2vi9oh2t ปีที่แล้ว

    Krasava bratan

  • @cdev859
    @cdev859 ปีที่แล้ว +3

    Thank you a lot , i watched all your previous courses and it was amazing time of learning , hopefully i found your channel whene i was learning computer organization, please tell us about your experience and any advises from you will help us

    • @Intermation
      @Intermation  ปีที่แล้ว

      Thanks for the kind words! Good luck with your studies!

  • @debasishkar761
    @debasishkar761 3 หลายเดือนก่อน

    Very good explanation of the theory and implementation . I have a question that you would be happy to answer with :D.
    Which taps to select for creating a certain "pseudo random sequences"?

  • @44mod
    @44mod ปีที่แล้ว +1

    Great video and thank you. I have a question. if you create a random number and then manipulate the code so it will not go into a loop of randomness how do we now that the random loop is not part of the randomness of the characteristic of the random process. If you use a billion, billion, billion, billion, billion, billion for instance. would the characteristic of the same situation come back again. What if we only thought we had a problem in the first place but we did not. In life I see so many patterns of people getting in a loop. The father doing a certain job the son doing the same thing and so on. As the population grows the model seams to change but does it really. If you use a group of 10 the same number comes up more often we think we see a pattern that is not random but is it . lets use a billion, billion, billion, billion, billion, billion for instance. now we have fixed the problem or have we? If I could see a billion, billion, billion, billion, billion, billion as easy as I could see 1 through 10, could it be as simple as our norm of minute thinking. I am just an old dumb county boy who loves God. I have tried to understand the thought of Infinity what would be the pattern. Is there one? I think our thinking of how we understand everything is so small that compared to a needle head with the strongest microscope I do not even think we could be seen. Thank you for your video again it got me thinking and that is what it is all about.

    • @Intermation
      @Intermation  ปีที่แล้ว +1

      If the sequence is long enough, the pattern should continue to appear random without looping. As you said, numbers repeating does not indicate a loop and is to be expected even with a true random number generator. For example, roll a pair of dice enough, and numbers will repeat. The order in which the numbers come, however, should not loop until we've gone through the entire list. Care has to be taken with some pseudo random number generators such as Middle-Square and Linear Congruential in order to keep loops and patterns from showing up.

    • @44mod
      @44mod ปีที่แล้ว

      @@Intermation Well said and thank you for your reply. I really like you channel and absolutely respect and admire your teachings. Again thanks. No reply needed you have to read and answer a lot or comments.

  • @SynoPTL
    @SynoPTL ปีที่แล้ว +1

    How do you record from the back of the board? And do you write backwards?