I need a good 8 bit random number generator.I have searched in pic list & found this one.
I have done many experiments using this code but still I'm not satisfied.Because this code will generates some similar numbers most of the time.If you test this using a light bar you will notice that.
Is there anyway to fine tune this to make some good random numbers
I have done many experiments using this code but still I'm not satisfied.Because this code will generates some similar numbers most of the time.If you test this using a light bar you will notice that.
Is there anyway to fine tune this to make some good random numbers
Code:
RLF RANDOM,W
RLF RANDOM,W
BTFSC RANDOM,4
XORLW 1
BTFSC RANDOM,5
XORLW 1
BTFSC RANDOM,3
XORLW 1
MOVWF RANDOM
RETLW 0
Last edited: