Pseudo Random Number Generator Implemented in JavaScript

Sdílet
Vložit
  • čas přidán 23. 07. 2024
  • The beauty of a linear feedback shift register is that their hardware implementation is fast and simple. So why implement an LFSR in code? Well, mostly to get familiar with their operation.
    Timestamps
    00:00 | Intro
    01:09 | Review of Organization of a Linear Feedback Shift Register
    02:27 | Review of XOR Operation
    03:01 | Mapping LFSR Components to the Code
    04:00 | Review of Bitwise Shift Operation
    04:39 | Review of Bitwise AND Operation
    05:00 | Defining Constants/Variable for Readability and Structure
    10:42 | Coding the Linear Function (XOR)
    15:51 | Writing the Main Loop with Corresponding Output
    18:46 | Writing Code to Perform Shift and Appending of Most Significant Bit
    21:51 | Running our Script in a Browser
    22:26 | Suggested Improvements to our Code
    Hashtags
    #prng #lfsr #randomnumbers

Komentáře • 7

  • @adimasariefrahman8555

    Ur videos is gold. I hope others can found this masterpiece.

  • @dilshodusmanov1458
    @dilshodusmanov1458 Před rokem

    we expect to see new lessons this or next week please don't stop recording new lessons about computer Science!

  • @SynoPTL
    @SynoPTL Před rokem +3

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

    • @rdear
      @rdear Před rokem +3

      I’m pretty sure there’s a piece of glass in front of him. He writes on that and it’s backwards to the camera so in editing software he flips the video left to right.

    • @dilshodusmanov1458
      @dilshodusmanov1458 Před rokem

      I had the same question

    • @dilshodusmanov1458
      @dilshodusmanov1458 Před rokem +1

      @@rdear oh right thanks

  • @carriep7812
    @carriep7812 Před rokem

    Your videos/tutorials are amazing. Thank you for the content and all you do. Do you offer private assistance? I'd be willing to pay, and this is a completely legitimate inquiry. I'm not able to leave any form of contact as it will be picked up by an algorithm.