psubiaco
Member level 2
8 bit pseudorandom c
Could anybody send me any idea to have a sequence of 8bit random numbers?
My idea was to start from a SEED and every fix period (timer interrupt routine) update this number obtaing a pseudo random sequence.
I found some example about "how to generate a stream of bits" or "how to generate a single number", but I've not find, yet, a routine to create a stream of 8bit numbers, and I don't know the theory of RNG.
Any C source code example or alghorithm is welcome.
Thank you in advance. Paolo
Could anybody send me any idea to have a sequence of 8bit random numbers?
My idea was to start from a SEED and every fix period (timer interrupt routine) update this number obtaing a pseudo random sequence.
I found some example about "how to generate a stream of bits" or "how to generate a single number", but I've not find, yet, a routine to create a stream of 8bit numbers, and I don't know the theory of RNG.
Any C source code example or alghorithm is welcome.
Thank you in advance. Paolo