Package lfsr implements pseudo random number generators based on linear feedback shift registers (LFSR).Ī well desing n bit LFSR that will return the numbers in the range 1-2^n in a pseudo random order with no repeating numbers until the full range has been exhausted. Get the next random number in the sequence from the LFSRĬopyright (C)2013-2019 by Chris Taylor (taylorza) Use the 'go' command: $go get /taylorza/go-lfsrĮxamples // Create a 64 bit LFSR with a time based seed Lfsr16 - 16 bit LFSR with a period of 65,535.Lfsr8 - 8 bit LFSR with a period of 255.In this package the following linear feedback registers are provided: Random numbers generated by the LFSR implemented in this package will produce a sequence that has a period covering the full range of bits for the chosen LFSR.Ī well designed n-bit LFSR will return the numbers in the range 1-2^n in a pseudo random order with no repeating numbers until the full range has been exhausted. Linear feedback shift register (LFSR) based psuedo random number generator
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |